787ddd7155 | ||
---|---|---|
follower | ||
gradle/wrapper | ||
moves | ||
src | ||
tracks | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
Klassendiagramm.drawio | ||
README.md | ||
build.gradle | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
settings.gradle |
README.md
team02-AngryNerds-projekt1-racetrack
PM2 Team 02 Projekt 1 Racetrack Racetrack is a pen and paper game that dates back to the early 1960s in this version of the game, the game is digitalized and the math behind it is done automatically rather than calculated by hand and the winner gets informed automatically as well.
The aim of the game is to finish the race faster than your opponent or win by being the only survivor in case the other cars crash.
In order to not crash you have to keep in mind the acceleration and other players car to get to the finish line safely.
#Initialization: ###The game can be initialized by the terminal command: ./gradlew run ###You will then be prompted to select a track file from the selection by entering the corresponding number. ###For each car that is taking part in the race a strategy has to be chosen there are the following options:
- ####Do not move Strategy
This Strategy sets the car stationary and it won't make any moves during the game staying at the startpoint indefinitely.
- User Move Strategy
The player is prompted for each move to make a choice the different choices you are able to take are as followed:
1=down-left
2=down
3=down-right
4=left
5=no acceleration
6=right
7=up-left
8=up
9=up-right
it is also possible to leave the game when it is your turn by entering 10
- Move List Strategy
For this strategy a predefined list of moves have to be given, the list may contain all allowed moves like mentioned in User Move Strategy
- Path Follow Move Strategy
A list of point has to be given to the follow move strategy, the strategy will then calculate the route to cross each point in the given order.
- Path Finder Strategy
The pathfinder Strategy Calculates a route itself and follows it direction fully automatically.