Bugs Against Monkeys – Java game

b33angelova

Here goes my try of creating a text-based game in Java.

The game is called Bugs Against Monkeys and it’s a lower quality remake of Battleship/Minesweeper (without hints).

I’m using two 2D-arrays to save :

  1. The board to print, from which the players pick 2 coordinates of a point in which they suggest a bug/monkey is hidden;
  2. The array with animals, which has the same length as the board array. The difference is that it’s filled with a couple of bugs on the left side and couple of monkeys on the right side, otherwise 0s.

The sizes of the board can be changed.
Feel free to use and improve the code.

BugsAgainstMonkeys.java

View original post

Publicités
Par défaut