commit
4b6859df36
34
Home---Welcome.md
Normal file
34
Home---Welcome.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
Welcome to Rock Paper Scissors.
|
||||||
|
|
||||||
|
This game is quite simple. Proceed to the installation page for more instructions.
|
||||||
|
|
||||||
|
|
||||||
|
# Game Mechanics
|
||||||
|
|
||||||
|
The code is written to support several Game Objects (GOs) that interact with each other in a way that resembles Rock Paper Scissors.
|
||||||
|
Right now, three GOs are available to play Rock Paper Scissors.
|
||||||
|
|
||||||
|
|
||||||
|
The main program file is a series of loops that keep the game running.
|
||||||
|
|
||||||
|
## Game Rules - Score Calculation
|
||||||
|
The score calculation system is rather simple; Each player starts out with 20 points.
|
||||||
|
|
||||||
|
Each loss deducts x points from the player; The current game multiplier (hardcoded to 2) is multiplier by 6 and then it's result is subtracted from your score:
|
||||||
|
|
||||||
|
``` score - (multiplier * 6) ```
|
||||||
|
|
||||||
|
Each win, your score is multiplied by the current multiplier: ``` score * multiplier ```.
|
||||||
|
|
||||||
|
|
||||||
|
After 1000 positive points you start getting more lives.
|
||||||
|
|
||||||
|
Too long with negative points, you start losing lives.
|
||||||
|
|
||||||
|
|
||||||
|
The game ends when any of the players' lives reaches 0.
|
||||||
|
|
||||||
|
|
||||||
|
# Computer Choices
|
||||||
|
|
||||||
|
The CPU plays in a purely random fashion; It uses a random number using PHP's ```mt_rand()``` function, that uses ```CryptGenRandom()``` from the Windows API or ```/dev/urandom``` for some Linux systems.
|
Loading…
x
Reference in New Issue
Block a user