Split or Steal

Split or steal is a videogame based on the popular TV show ‘Golden Balls’. The rules are simple. Each player possesses one red button that represents the steal option, and a blue button that represents the split option.

If both players decide to steal from each other, they will both be penalised by losing two points. If both players decide to split, then each of them will be awarded two points. However, if one players presses the split button while the other player presses the steal button, the stealer will be awarded two points. The player who presses the split button will receive nothing.

There are two ways of winning this game. One of them is by simply reaching ten points. The other method of winning was created to stop players from overusing the steal button. If a player’s score is lower than -5 points, then they will immediately lose and the other player will be named the winner.

Code

Each part of this code represents a certain state of the game, such as what will happen when Player 1 decides to split and Player 2 decides to steal. The scores are added up from each round and are shown once the players have made a decision as to which one they choose. Once someone reaches over 9 points they will win, and if a player reaches less than -4 points they will lose. If both players reach over 9 points it will display ‘Big Winners’, and if they both reach less than -4 it will display ‘Scumbags’.

As you can see in the code, we frequently used the operators and variables. This allowed the program to display the amount of points each player has, and to decide what action to do depending certain events. For example, if both players have over 9 points, or less than -4 points. To make sure that displays don’t overlap each other, we always added a ‘stop all stacks’ at the end of each code.

Evaluation

In conclusion, we think that this game is pretty good because the program does what its code tells it to do. It responds to the buttons without problems, and displays don’t overlap themselves. Despite the concept being so simple, the game can last for a long time if players aren’t careful.

If we were given more time to improve and polish this game, then we would have liked to have added the instructions at the start of the game to avoid confusion from players. We would have also liked to have added music and sound effects when a button was pressed to make the game resemble more like the TV show it was inspired by.

Leave a Reply