Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
AlirezaSaadatmand committed May 9, 2024
1 parent 5e0f78b commit 2d2c089
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
This project solves the knight problem and uses pygamee for gui


you can start where ever you want and you can change the start position in the code
you can start where ever you want and you can change the start position in the code


![Screenshot 2024-05-09 143510](https://github.com/AlirezaSaadatmand/Knight-Problem/assets/157215281/a2fbdb56-9b3e-4952-93f9-cad0db1fc3a6)
2 changes: 1 addition & 1 deletion knight problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def create_board():
x = (WIDTH / 2) - (UNIT * count_block / 2)
for j in range(count_block):
blocks.append(Block( j , i , x , y , id , color))
if id % 8 != 0:
if id % count_block != 0:
if color == "white":
color = "black"
else:
Expand Down

0 comments on commit 2d2c089

Please sign in to comment.