Skip to content

Zulox/Tanks-Java

Repository files navigation

#TANK Java Game This is a game where you will take control of a tank, the main goal of the game is to destory the enemy A.I tank you will control the tank by telling it instruction on what kind of moves it would take

Demo

[Game Image 1] [Game Image 2]
Option Game

#Code Location Important code location are at :

src->Tanks

#How To Play The Tank can only move up, down, left or right, and shoot up, down, left or right. The AI sequence is 15 of these moves.

At the start of the game, the AI generates a new random sequence of commands for the AI’s robot.

The player then has to select 15 commands for the player's tank. Then the round starts, and the player run their respective sequences, animated on the screen.

If the player’s tank manages to kill the AI’s tank, then the human has won the game. If not, then the player has to write a new sequence to try to do that.

The aim of the game is for the player to take the least number of tries before their TANK manages to kill the

AI’s TANK. So, for example, if it only takes the Player 3 tries, it’s a better result than if it takes the Player 10

tries.

##HOW TO RUN #WARNING YOU NEED NETBEAN IN ORDER TO RUN THE PROJECT

1)Download the whole project file

2)Open Netbean

3)Navigate to FILE->OPEN PROJECT ... (CTRL+SHIFT+O)

4)In the file explorer, navigate to downloaded project folder

5)Click the "COFFEE" icon marked 'TANKS'

6)Navigate thru the folder inside netbean, and double click 'TBoard.java'

TANKS -> Source Packages -> Tanks -> TBoard.java

  1. Right Click "TBoard.java"

  2. Choose 'Run File' (Shift+ F6)

About

A game that involve tank

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages