User Tools

Site Tools


joust

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
joust [2020/04/10 17:16]
frchris
joust [2020/04/10 17:22] (current)
frchris
Line 22: Line 22:
       - You might get ''​indexOutOfBounds''​ runtime errors if you forget to see if you are looking for a square that is off the board. ​ Thank goodness Java uses 'short circut'​ conditional statements. ​  Good thing, since it would cause a runtime error. ​ Once the first part of the && is false, that is enough to know the whole expression is false.       - You might get ''​indexOutOfBounds''​ runtime errors if you forget to see if you are looking for a square that is off the board. ​ Thank goodness Java uses 'short circut'​ conditional statements. ​  Good thing, since it would cause a runtime error. ​ Once the first part of the && is false, that is enough to know the whole expression is false.
  
 +====== Now What? ======
 +
 +Once you have it going, you can customize it:
 +  - Change the colors or the appearance of the Knights
 +  - Make the "​Misere"​ version (where the one who can't move is the winner)
 +  - Change the size of the board to 5 by 5 board or a rectangular board
 +  - Make a new project with some of these classes to write a [[https://​en.wikipedia.org/​wiki/​Knight%27s_tour|Knight'​s tour]] puzzle or a [[https://​en.wikipedia.org/​wiki/​Eight_queens_puzzle|8 Queens]] puzzle, or for any size board.
  
  
  
joust.txt ยท Last modified: 2020/04/10 17:22 by frchris