Compare commits
3 Commits
245720b897
...
8c92d79975
| Author | SHA1 | Date | |
|---|---|---|---|
| 8c92d79975 | |||
| 31684c6e3f | |||
| 280374c105 |
6
main.py
6
main.py
@ -1,6 +1,10 @@
|
|||||||
import pygame as pg
|
import pygame as pg
|
||||||
from board import render_board
|
import numpy as np
|
||||||
|
|
||||||
|
from board import render_board
|
||||||
|
from position import pos
|
||||||
|
|
||||||
|
#print(pos)
|
||||||
|
|
||||||
pg.init()
|
pg.init()
|
||||||
size = 900
|
size = 900
|
||||||
|
|||||||
BIN
pieces/b-knight.png
Normal file
BIN
pieces/b-knight.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.9 KiB |
BIN
pieces/w-knight.png
Normal file
BIN
pieces/w-knight.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 7.3 KiB |
10
position.py
Normal file
10
position.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import pygame as pg
|
||||||
|
|
||||||
|
pos = [[4, 3, 2, 5, 6, 2, 3, 4],
|
||||||
|
[1, 1, 1, 1, 1, 1, 1, 1],
|
||||||
|
[0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
|
[0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
|
[0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
|
[0, 0, 0, 0, 0, 0, 0, 0],
|
||||||
|
[1, 1, 1, 1, 1, 1, 1, 1],
|
||||||
|
[4, 3, 2, 5, 6, 2, 3, 4]]
|
||||||
Loading…
Reference in New Issue
Block a user