
Hi, I try to make my board game like as photo.
my code :
![[Image: board-with-checkers-vector-3523363]](https://www.vectorstock.com/royalty-free-vector/board-with-checkers-vector-3523363)
https://www.vectorstock.com/royalty-free...or-3523363
my code :
import pygame from sys import exit rows = cols = 8 fps = 60 white = (255, 255, 255) black = (0, 0, 0) pygame.init() screen = pygame.Rect(0, 0 , 600, 600) surface = pygame.display.set_mode(screen.size) pygame.display.set_caption('draughts') class Board(): def __init__(self): self.board = [] # 2d matrix self.red = self.black = 12 self.red_king = self.black_king = 0 def draw_squares(self, surface): surface.fill(black) board = pygame.Surface(512, 512) for i in (0 , 8): for j in ((i+1)//2, cols, 2): pygame.draw.rect(surface, white, (i*64), (j*64), 64, 64) surface.blit(board, (44, 44)) def main(): run = True clock = pygame.time.Clock() board = Board() while run: for event in pygame.event.get(): if event.type == pygame.QUIT: run = False board.draw_squares(surface) pygame.display.update() pygame.quit() main()
Error:File "C:/Users/Lampros/PycharmProjects/pythonProject15/main.py", line 40
board.draw_squares(surface)
^
IndentationError: unindent does not match any outer indentation level
https://www.vectorstock.com/royalty-free...or-3523363