Sin duda, en un post de dancresp ( a quien iba a dedicar en primera instancia ) , a ver si lo deconstruyo del todo ( a dancresp...

). Esta se la debía coño !!!, para no variar.
[flanders]Lo del video, pues puse a grabar la pantallita, luego le añadí algunos sonidillos y al tubo. Zas ! Lo de la musiqueja era de propinilla. [/flanders]
Para lograr todo esto, lo primero es bajarse el source del cool-retro-term, un emulador de terminal TTY openGL que es una pasada.
https://github.com/Swordfish90/cool-retro-termHay que compilarlo y voilá ya tenemos un emulador de TTY en OpenGL que lo peta todo porque es una pasada. Es una terminal de shell en donde podremos ejecutar todo lo que queramos.
Para el programa, vi que lo mejor era algo en C que simulase la sesión de Wargames con la WOPR. También se compila en nada.
Hay un tipo llamado unnamedguy que tiene un repositorio en GitHub y ahí está el programa en C de War Games enterito. Listo para compilar.
https://github.com/theunamedguy/wargamesAsí que el programa es muy versátil y seguramente se pueda compilar en Windows sin mucho problema. En Cygwin ya os digo que compila perfectamente y funciona. Aunque lo suyo es hacerlo en Linux, que es en donde yo lo he hecho.
El programa tiene todo muy bien estructurado y programado... sigue fielmente el guión de la película....
This file contains a formal definition of Global Thermonuclear War.
=======GAMEPLAY========
Each player starts with 32 ICBMs.
The player with population still remaining after the other has been wiped out is the winner.
If both players are wiped out, it is a tie.
Each turn, the player can either:
- Launch ICBMs
- Negociate peace terms
- Surrender
The behavior of each of these options is described below.
ICBM launch:
- The USA can launch ICBMs at a maximum of 4 cities at a time.
- The USSR can launch 6 at a time.
- When an ICBM is launched, there are 5 possible results:
- Miss: 0 casualties
- Marginal: 20%+1000 casualties
- Minor: 40%+2500 casualties
- Major: 60%+5000 casualties
- Critical: 100% casualties
- The probabilities of each of these options is outlined below:
- Miss - 10%
- Marginal - 20%
- Minor - 30%
- Major - 30%
- Critical - 10%
- After the turn, the cities targeted will have one of these symbols in it:
- Miss - O
- Marginal - x
- Minor - *
- Major - X
- Critical - !
Negociation:
- There are three possible outcomes:
- Peace/Progress - 20%
- Surprise attack - 20%
- No progress - 60%
- When progress is made, both sides will lose 4 ICBMs
- Progress must be made at least 5 times if peace is to be achieved
Surrender:
- The other player wins
=======GRAPHICS=======
Each turn, a map is displayed with the populations of the players cities in a table below.
y para que se vea que MOLA un montón: