Skip to content

Commit

Permalink
ruff fix
Browse files Browse the repository at this point in the history
  • Loading branch information
namnguyen20999 committed Nov 23, 2024
1 parent 45fc506 commit eac19d4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions doc/gui/extension/table_chess_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,25 @@
from taipy.gui import Gui

data = [
["\u265C", "\u265E", "\u265D", "\u265B", "\u265A", "\u265D", "\u265E", "\u265C"], # Black Rook, Knight, Bishop, Queen, King, Bishop, Knight, Rook
["\u265F", "\u265F", "\u265F", "\u265F", "\u265F", "\u265F", "\u265F", "\u265F"], # Black Pawns
["\u2656", "\u2658", "\u2657", "\u2655", "\u2654", "\u2657", "\u2658", "\u2656"], # White Rook, Knight, Bishop, Queen, King, Bishop, Knight, Rook # noqa: E501
["\u2659", "\u2659", "\u2659", "\u2659", "\u2659", "\u2659", "\u2659", "\u2659"], # White Pawns
["", "", "", "", "", "", "", ""], # Empty squares
["", "", "", "", "", "", "", ""], # Empty squares
["", "", "", "", "", "", "", ""], # Empty squares
["", "", "", "", "", "", "", ""], # Empty squares
["\u2659", "\u2659", "\u2659", "\u2659", "\u2659", "\u2659", "\u2659", "\u2659"], # White Pawns
["\u2656", "\u2658", "\u2657", "\u2655", "\u2654", "\u2657", "\u2658", "\u2656"] # White Rook, Knight, Bishop, Queen, King, Bishop, Knight, Rook
["\u265F", "\u265F", "\u265F", "\u265F", "\u265F", "\u265F", "\u265F", "\u265F"], # Black Pawns
["\u265C", "\u265E", "\u265D", "\u265B", "\u265A", "\u265D", "\u265E", "\u265C"] # Black Rook, Knight, Bishop, Queen, King, Bishop, Knight, Rook # noqa: E501
]

page = """
## Chess Game
<|{data}|example.game_table|>
"""

page = """
## Chess Game
<|{data}|example.game_table|>
"""

if __name__ == "__main__":
Gui(page, libraries=[ExampleLibrary()]).run(title="Chess Game")
Gui(page, libraries=[ExampleLibrary()]).run(title="Chess Game", port=3002, use_reloader=True)

0 comments on commit eac19d4

Please sign in to comment.