MegaGameSociety / WatchTheSkiesDashboard

Watch the Skies Dashboard
1 stars 2 forks source link

Nuclear Launch Controls #4

Open FifthSurprise opened 9 years ago

FifthSurprise commented 9 years ago

Nuclear Launch Control Page and handlers

This should be a form that checks back-end for nuclear launch control pairs. We can store the launch codes as a model connected to Game.

Each nation should get their own pair of codes.

Once "authenticated", set a flag in game data that a launch has occurred and its target (both of which we will access later)

A view should be created that accepts code submissions and validates them.

Another view should handle displaying the launch itself. For now, it should just display who launched the nuke and at whom.

A design should be made first before completing the below steps:

  1. Create a table for Nuclear Launch Codes. It should have country, codeA, codeB, and game.
  2. Update game data to store a variable for nuke_launch
  3. Create route/controller for handling nuclear launch controls
  4. A route/view should exist for entering in codes. It should be a single page with two text form fields for the two codes, a text field for the target, and a validation button.
  5. Validate that the codes match the database.
  6. On success, update game data nuke_launch variable
  7. Create new route called /launched
  8. Create a view that depicts a nuclear launch and the target.

An additional ticket will handle forcing users to the /launched page after it is built.