dev-hmsk / boardgame

Board Game Boiler Plate & Checkers Game Implementation
1 stars 0 forks source link

Bug #1 #1

Open dev-hmsk opened 1 year ago

dev-hmsk commented 1 year ago

Problem: Bug where capture flag is incorrectly made or exists as false when it should be true during a double capture.

This causes the elif statement in main.py process_moves() to try and place a piece where another already exists. https://github.com/dev-hmsk/boardgame/blob/e4cb6a7e08d1adb713ad1de11dc77a27f25e1047/main.py#L79C1-L86

This triggers the board.py Board._place_at_location() else block and returns the error print statement. https://github.com/dev-hmsk/boardgame/blob/e4cb6a7e08d1adb713ad1de11dc77a27f25e1047/board/board.py#L232C1-L237

This might have to do with the recursive loop in main.py process_piece_selection(). https://github.com/dev-hmsk/boardgame/blob/e4cb6a7e08d1adb713ad1de11dc77a27f25e1047/main.py#L152-L155

I don't know if jumps in straight lines vs angled lines causes seperate issues

Reproduce: Start Game and attempt double jump

dev-hmsk commented 1 year ago

This is being addressed in

https://github.com/dev-hmsk/boardgame/tree/bug/Bug