B. User Manual

Blackjack:

Components Necessary to the Game

Retro cards png
Simple game engine
Main blackjack file
Function file

Rules to Blackjack:
The goal of Blackjack for both the player and dealer is to get the sum of cards in their hand as close to 21 or exactly 21 without going over. The player closest to 21 will win unless both have equal sums in which case no one wins or loses. The dealer will always continue to draw cards as long as its total is under 17.

Instructions on How to Play
The first thing that will happen in the game is that the player will input the amount they want to bet from their pot. After a bet is placed both the player and dealer are dealt 2 cards each, however, one of the dealers cards starts off face down. The player has the option to stand, keep the cards in their hand, or to hit, draw another card from the deck. To stand the player must press ‘s’ on their keyboard, and to hit the player must press ‘h’ on their keyboard. If the player chooses to stand then the dealer face down card will be revealed. The dealer will keep drawing cards as long as the sum of its cards is under 17. The player closest to 21 will win unless both have equal sums in which case no one wins or loses, and the bet is returned to the player’s pot. If the player chooses to hit then another card will be added to their hand. If the sum of their hand is over 21 then they lose and the dealer’s face down card is revealed. If the player’s total is under 21 then they have the option to continue to hit or stand. Once a round is over, the player will be notified if they won or lost and the remaining money in their pot will be displayed. If the players want to continue playing the game then they should type ‘yes’, but if they do not wish to continue playing then they should type ‘no’ to end the game.

Betting System:
The player will start with a total of $500 in their pot. Before each round they will be asked to enter an amount of money to bet. The player can bet whole numbers or bets up to 2 decimal places. If the player wins then the amount that they bet will be added to their total before they had bet. If the player loses then the amount they bet will be subtracted from their total. If the player and dealer tie then the bet is returned to the pot resulting in no money won or lost. If the player gets exactly 21 with their first two cards then their bet will be multiplied by 1.5x and that total will be added to their pot.

 

Connect 4:

Components Necessary to the Game

BestConnectFour png
Simple game engine
Main ConnectFour file
Function file

The goal of the game of Connect 4 is to try and get four in a row whilst stopping your opponent.

The game first creates a sprite chart using a command splitting a 407 by 86 pixel sprite into four. The sprites are then associated with a variable named appropriately. After, the board is set up to properly display the game, the game can begin. Once the game begins, the player who will be playing as red will input a number key between 1 and 7. If the key is not a valid input, nothing will happen until a number key between 1 and 7 is pressed. The chip will automatically go into the next available row with a checking system. After a chip is placed, the game will check if that player has won, and will display at the top when the player has won. If no players have won, the turn counter is one greater, and the game swaps to black’s input. The back and forth process will go on until red or black has won, or if there are no more possible placements and the game will end in a draw.