Skip to content

Commit

Permalink
Update gold to start at printable character
Browse files Browse the repository at this point in the history
  • Loading branch information
JesseEmond committed Jun 29, 2017
1 parent aeef147 commit 31de8c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion FakeGame/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ int main()
{
int health = 100;
int mana = 100;
signed char gold = 0;
char gold = ' ';
short miles = 5;
float rate = .1f;
double science = .1f;
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ which change every time a newline is entered along with their associated address
> ./FakeGame/bin/FakeGame
health(4): 100 - 0x7ffcb173c07c
mana(4): 100 - 0x7ffcb173c078
gold(1): - 0x7ffcb173c077
gold(1): - 0x7ffcb173c077
miles(2): 5 - 0x7ffcb173c074
rate(4): 0.1 - 0x7ffcb173c070
science(8): 0.1 - 0x7ffcb173c068
Expand Down Expand Up @@ -76,7 +76,7 @@ and keep searching with the updated value. Let's start by updating the game:
```
health(4): 99 - 0x7ffd647d71ac
mana(4): 98 - 0x7ffd647d71a8
gold(1): - 0x7ffd647d71a7
gold(1): ! - 0x7ffd647d71a7
miles(2): 15 - 0x7ffd647d71a4
rate(4): 0.3 - 0x7ffd647d71a0
science(8): 0.103 - 0x7ffd647d7198
Expand Down

0 comments on commit 31de8c9

Please sign in to comment.