Work Life (Visual Novel / Game)
Loading...
Searching...
No Matches
minigame_code Namespace Reference

the programming team's mini-game where you do math More...

Functions

void game ()
 programming team's mini-game
 
int calc (int x, char op, int y)
 perform the operation stored in char, returning 0 if no supported operation found
 
bn::string< 8 > itos (int i)
 hack to avoid using std library
 
bn::string< 1 > opToStr (char op)
 convenience to convert char to string
 

Variables

bn::random rng
 random number generator used for rounds
 
bool successfully_answered
 internal global to support reference from lambdas
 

Detailed Description

the programming team's mini-game where you do math

I didn't really know a clever code-based game and wanted something extremely easy however, adding even two digits can make the game a bit tedious!