This commit is contained in:
Thomas 2022-01-10 08:50:48 +01:00
parent 31033a7d53
commit 8f24a307f8
No known key found for this signature in database
GPG Key ID: E538821A6CDFDAD7
3 changed files with 4 additions and 5 deletions

View File

@ -12,6 +12,8 @@
#ifndef SPACE_CONFIGMANAGEMENT_H
#define SPACE_CONFIGMANAGEMENT_H
#include<climits>
/*
* This header will only be imported once, but Djalim told me he would hurt me
* if I didn't move it into his own header file instead of the cpp file

View File

@ -154,8 +154,5 @@ Position Game::invIndexToPos(unsigned x, unsigned y) const {
}
bool Game::arePlayersDead() {
for(Player& p : players){
if(!p.isEliminated())return false;
}
return true;
return all_of(players.begin(), players.end(), [](Player& p){return p.isEliminated();});
}

View File

@ -18,7 +18,7 @@
// Our own format : kustom
#define SCORE_FILE "scores.kus"
#define SECRET_KEY "WeAreAGroupOf3"
#define SECRET_KEY "HelloWorld"
void readWholeFile(const ifstream& ifs, string& str){
stringstream ss;