Corewar documentation 1.0.0
Loading...
Searching...
No Matches
update.c File Reference

The file containing the update functions. More...

Functions

void update_program_counter (champion_t *champion, int value)
 Update the program counter of a champion.
 
void update_carry (champion_t *champion, int value)
 Update the carry of a champion.
 

Detailed Description

The file containing the update functions.

Function Documentation

◆ update_carry()

void update_carry ( champion_t * champion,
int value )

Update the carry of a champion.

Parameters
championThe champion to update
valueThe value to check
Returns
void

◆ update_program_counter()

void update_program_counter ( champion_t * champion,
int value )

Update the program counter of a champion.

Parameters
championThe champion to update
valueThe value to add to the program counter
Returns
void