Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 811 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 811 Bytes

Frogger

To compile game: javac -cp . frogger/Main.java

To run: java frogger/Main

alt text

Game instructions: WASD for moving. X to restart. Try to get to the opposite side of the screen. Avoid asteroids. Traverse the void of space by jumping on ships.

For Tests: Make sure junit and hamcrest jars in working directory. To Compile: javac -cp .;junit-4.12.jar;hamcrest-core-1.3.jar test/*.java

To run all tests: java -cp .;junit-4.12.jar;hamcrest-core-1.3.jar;res org.junit.runner.JUnitCore test.FrogTest test.GameObjectTest test.GameObstacleTest test.ModelGUITest test.ModelTest test.ModelTextTest

To run an individual test: java -cp .;junit-4.12.jar;hamcrest-core-1.3.jar;res org.junit.runner.JUnitCore test.[TESTNAME]

if on Linux replace semi-colons with colons.