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:
Create a table for Nuclear Launch Codes. It should have country, codeA, codeB, and game.
Update game data to store a variable for nuke_launch
Create route/controller for handling nuclear launch controls
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.
Validate that the codes match the database.
On success, update game data nuke_launch variable
Create new route called /launched
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.
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:
An additional ticket will handle forcing users to the /launched page after it is built.