# VERY Simple game program

You are going to write a design document for a program to play the game Artillery. Artillery is a two player game (played between one human player and a computer player ) where each player gets an artillery piece. The pieces are separated by some X meters and the players take turns shooting at each other. The player who is the first to land a shall within a certain distance of the enemy artillery piece wins. Players take turns by picking an angle (in degrees ) relative to the horizontal and a speed (in meters per second ) for their shell. The computer then calculates the distance that a shell travels in meters. If the shell lands within a certain distance of the enemy, the game is over. The game is written in JAVA, and is command line based(no GUI please)

## Deliverables

* For a given angle theta ( in radians ) and a given speed s, the horizontal distance for a shell is given by the equation d = s*s*sin(2*theta)/9.8

* The user inputs angles in degrees, but the [url removed, login to view] function assumes that the angle is in radians. Given that there are 2*[url removed, login to view] radians for every 360 degrees, you could write a handy conversion function. Or, you could sniff around and see if the Math class has a neat function for you.

* [url removed, login to view]() is a function that takes an angle in radians as input and returns the sin of that angle.

<!-- -->

* A single run of the program should allow the user to play multiple games of artillery.

* Each game, a new distance X is calculated. Say, X is between 100-200 meters ( your choice ). The user should be informed of this distance.

* The user should also be informed of how far each shot fired traveled and about any decisions made by the computer player.

* The user will play against a computer player ( with the user going first ). The computer player picks a random theta ( from between 0 and 90 degrees ) and a random speed ( between 0 m/s and say 100 m/s - your choice )

* When the user is done playing, if the user won more than 90% of their games, say something REALLY nice. If they won 75%-90%, then say something less nice. Otherwise, insult the user for their poor performance.

Habilidades: Engenharia, Java, MySQL, PHP, Arquitetura de software, Teste de Software

( 2 comentários ) United States

ID do Projeto: #2980205

## 17 freelancers estão ofertando em média \$78 para este trabalho

renardpaul

See private message.

\$102 USD in 14 dias
(96 Comentários)
6.4
anirib

See private message.

\$8.5 USD in 14 dias
(37 Comentários)
5.2
Manid

See private message.

\$211.65 USD in 14 dias
(15 Comentários)
4.9
larzul

See private message.

\$25.5 USD in 14 dias
(36 Comentários)
4.4
kodiaksoftware

See private message.

\$170 USD in 14 dias
(14 Comentários)
3.5
sid2089

See private message.

\$8.5 USD in 14 dias
(14 Comentários)
3.0
Ruel

See private message.

\$17 USD in 14 dias
(11 Comentários)
3.0
cysoft

See private message.

\$4.25 USD in 14 dias
(5 Comentários)
2.6
fabulousronin

See private message.

\$19.55 USD in 14 dias
(2 Comentários)
0.7
beissemj

See private message.

\$17 USD in 14 dias
(0 Comentários)
0.0
alexeyivw

See private message.

\$68 USD in 14 dias
(0 Comentários)
0.0
alexflo

See private message.

\$4.25 USD in 14 dias
(3 Comentários)
0.0
ivancvut

See private message.

\$17 USD in 14 dias
(0 Comentários)
0.0
priyeshbeohar

See private message.

\$85 USD in 14 dias
(0 Comentários)
0.0
Joyceest

See private message.

\$552.5 USD in 14 dias
(0 Comentários)
0.0
deltaalexen

See private message.

\$8.5 USD in 14 dias
(0 Comentários)
0.0
sush27

See private message.

\$5.95 USD in 14 dias
(0 Comentários)
0.0