Delwddrylliwr / cartolan

Simulation and networked virtual play of the Cartolan boardgame, playtesting and exploring whether there are degenerate strategies as well as providing a basis for novel ANN testing.
0 stars 0 forks source link

Tile selection for pirates doesn't deal with empty maps #286

Closed Delwddrylliwr closed 2 years ago

Delwddrylliwr commented 2 years ago

Making a land move Moving adventurer for Sal96 onto tile at -1, 4 Adventurer is trading on tile -1,4 Adding movement options that will be available next move, to allow skipping of actions Highlighting the tile where Sal96's Adventurer #1 can attack Prompting the Sal96 player for input data sent to client at ('::ffff:85.255.236.6', 27198, 0, 0) Click coordinate Input received from client... 322, 36 2022-01-23 14:14 GMT Sal96 chose the coordinates of the tile where their Adventurer can attack Sal96 successfully attacked Jon33's Adventurer. Prompting client at ('::ffff:85.255.236.6', 27198, 0, 0) with: Your Adventurer's piracy succeeded. How much treasure will they take, up to 14? TEXT... 14 Prompting Sal96 for input

Delwddrylliwr commented 2 years ago

Fixed by adding an extra condition in the regular attack method, and tested.