Rock Scissors Paper Game
Check the rules of the game, fill in the following functions, select the opponent, and click the Start Game button to start the battle.
Scissors are 1, Rock is 2, Paper is 3
Scissors win Paper, Rock wins Scissors, and Paper wins Rock.
1 point if you win with Scissors, 2 points if you win with Rock, 3 points if you win with Paper
Code battle is a battle between your code and opponent's code, and the language is JAVASCRIPT.
Fill in the code, select the opponent (RANDOM, LEVEL1, LEVEL2, LEVEL3, Online opponent) and then press the game start button will start the match.
1 game consists of 5 rounds, 1 round consists of 100 turns.
Code battle's lifecycle callback functions are onGameStart, onRoundStart, onTurnStart, onTurnEnd, onRoundEnd, onGameEnd, and you have to implement your own logic on each function.
Building a basic strategy of the game, analyzing your opponent's pattern and returning the best choice from onTurnStart is the key to winning.
Opponents: <= If you join here, other users can see you.
The entire game log is displayed in the area below.
If you or the opponent's screen is not visible, the communication speed will be slower.