Skip to content
Sign upLog in
Profile icon

Savez

@Savez
Repls
Community
Savez
Savez
shared a Post
1 year ago
Chess Game E.g.
Can someone help me with line 18 in main.py. What's wrong with the code?
Kai_Justice
Kai_Justice
On line 16 there's a list item called bP but the file its refering to is bp.png changing the file name to bP.png should fix it. Make sure that all the file names match up with their list item equivalent. > edit: yeah wp.png needs to be changed as well.1 year ago
Savez
Savez
shared a Post
1 year ago
Need help on how to fix the Indent error. Thanks
lajbel
lajbel
From the line 36 to line 51, in CheeseEngine, delete all, and put with the correct ident: def init(self, startSq, endSq, board): self.startRow = startSq[0] self.startCol = startSq[1] self.endRow = endSq[0] self.endCol = endSq[1] self.pieceMoved = boardself.startRow self.pieceCaptured = boardself.endRow def getChessNotation(self): return self.getRankFile(startRow, startCol) + self.getRankFile(self.endRow, self.endCol) def getRankFile(self, r, c): return self.colsToFiles1 year ago
Savez
Savez
shared a Post
1 year ago
Can someone help me with this error "no such file: main.py". Thanks
MrVoo
MrVoo
It means what it says, there no main.py file -_-. It cannot be in a folder, if you REALLY want to keep your files like that, add a main,py file and import the files1 year ago
SixBeeps
SixBeeps
https://replit.com/talk/ask/no-such-file/1403091 year ago