4 messages · Page 1 of 1 (latest)
This is just a n00b hurdle, I'm sure. There isn't an example to follow.
void hit(){
if (health > 0) {
--health;
}
}
Is giving me:
/tmp/ellens-alien-game/ellens_alien_game_test.cpp:32:22: error: invalid use of void expression
32 | REQUIRE(alien.hit());
| ~~~~~~~~~^~
I simply have no idea what's wrong here.
What does the spec way?
What's in the header?
Spec says something I'd missed !