Online Grand National Sweepstake Game
Requirements
- Allow a horse to be linked to one individual.
- An individual can only pick one horse, and cannot change their selection AFTER it has been picked.
- Allow the individual to affect the selection process, e.g. filter through the horses until the user selects Stop? Text box cycling through the horses
- Produce a listing of the horses NOT chosen, and who has picked WHICH horse
- You have to be a member to do the Sweep Stakes, and you get X number of horses that you can choose
- Create SQL Table that can be re-used for other WordPress Plugins, eg. Name/Value, with Value being an assortment of Data Types
- No Sweep Stake choices AFTER 1 hour before the Grand National commences.
- Include the odds for each horse, so the Individual is aware of the likelihood of winning at the outset
- . . .
Screens
List Horses and Selection
Requirements
- Provides a list of the horses running.
- Provides a list of statistics and information related to each horse.
- Displays the horses that have been selected, and by whom and when.
- Displays the horses that are still available to be chosen.
- A countdown timer shows the remaining time until the race starts.
- Shows the winner when the race has completed.
- A "Select Horse" button allows the user to select a horse and place their name against it.
Short Code
[THAT game="gnss" screen="table"]
Screenshot
Choose Horse
Requirements
- Shows the number of horses chosen, and the number of horses remaining to be chosen
- Allows the user to enter their name
- Back button allows them to return back to the Sweep Stake table.
- "Start Randomizer" button starts the Random Display of horses available.
- "Start Randomizer" once selected changes to "Stop Randomizer".
- "Stop Randomizer" shows the user which horse has been chosen, and updates the Database accordingly.
- Start Randomizer will validate the following:
- Text greater than 2 characters has been entered
- Username provided has not been used before, i.e. one horse per user.
- Randomizer is disabled if:
- User is not a Member
- User has exceeded the number of horses that can be chosen.
- . . . .
Short Code
[THAT game="gnss" screen="select"]
Screen
Defects/ Issues
#1 Time vs Browser(s), Server and Timezones
Issue
Ensuring that System Date/ Time matches what the browser shows, e.g. UTC vs BST (GMT+1) and other Time Zones.
Resolution
Ensuring that all code uses UTC for referring to a specific date and time, and thus allowing Browsers/ JavaScript functions to display local time (and count down to the event) correctly.
Enhancements
#1 Move All Text into Short Code Output
Change
Have all introductory text moved into the Output from the Short Code. Have this available to be entered/ updated in the database.
Benefit
Make the Short Code more generic, plus control any text which conflicts (e.g. what the intention of the game or dates related to it) to be controlled in one area.
Tic Tac Toe Game
Requirements
- Allow the User to play another User on the same screen
- Allow the User to play a computer
- Allow the User to play another User on two separate screens
- Current state of game is stored in the Database
- Unique URL is generated for that specific game, so that either user can return back to it
- End of Game announces a winner or a draw
- Keeps score of the games played so far, Win/ Lose/ Draw
- The Username of the person logged in, or "Guest A"/ "Guest B"/ "Computer A"/ "Computer B" is used to identify each player.
- A new game can be initiated while an existing game is being played, based on the Player combination choice in the screen.
- Computer player has different levels of expertise or type of moves:
- Random move in a free space on the board
- Level 1 - calculate win/ draw success based on the next 2 moves
- Level 2 - calculate win/ draw success based on the next 4 moves
- Level 3 - calculate win/ draw success through to the end of the "move tree"
- . . .
Questions
- Have Player move logic within the browser, or offline on the server?
- Browser: allows offline playing, BUT puts processing requirements on the browser
- Server: does not allow offline playing, BUT allows for heavy processing to be removed from the browser.
- . . .
Wimbledon 2015 Score Guesser Game
Requirements
- Game to allow individuals to guess the score/ outcome of Wimbledon matches, to see who can predict them the best to "win".
- Allows the User to submit ALL scores, regardless of which Players have made it from beginning to end, based on the following options
- A Default Score can be entered by the User.
- A warning is shown to the User if a Draw is the Default Score.
- A-Z of the Player Name wins based on a default Set Score
- Z-A of the Player Name wins based on a default Set Score
England FA Cup 2015 Game Score Guesser
Overview
Utilising the code written on the Wimbledon Game, the idea is to utilise this for other Tournament Based games.
Requirements
Allows players to track the outcome of the FA Cup from beginning to the end.