Console game similar to Rock-Scissors-Paper with configurable moves functionality and cryptographic confirmation of the PC's moves. Develops as a task project for an internship of the Itransition company .
Develop console game similar to Rock-Slicers-Paper.
Allows to play the game Rock-Slicers-Paper with PC with configurable move variants.
Functional requirements:
- Move variants are configured as a command line arguments.
- Number of the move variants must be odd and more or equal three.
- Move variants cannot be duplicated.
- Victory or defeat is computed by sequence of a command line arguments: next half of move variants loses current move variant, and previous half wins current move variant.
- Player is asked to choose move variant, exit or help during his move.
- PC's move confirms by cryptographic sign: PC generates secret key, computes signature for his move and shows signature to player. PC shows secret key after player's move. It is allows to make sure that the PC is not change his move variant.
- User interface must be in English.
Non-functional requirements:
- Cryptographic signature must be computed by HMAC SHA2 or SHA3 algorithm.
- Secret key length must be more or equal 256 bits.
Logic entities:
- TUI
- game context
- Data signer
- Key generator
Program entities:
Interfaces:
- IKeyGenerator
- IDataSigner
Classes:
- TUI
- GameContext
- BaseKeyGenerator
- HMACSHA2DataSigner
Enums:
- RoundResults