From da383dd198858691e91addd99f391cfc406b4be1 Mon Sep 17 00:00:00 2001 From: Seraina Date: Sat, 19 Mar 2022 17:08:39 +0100 Subject: [PATCH] Added rough outline of Day and Night cycle --- Meilenstein II/Spiellogik Pseudocode | 29 +++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/Meilenstein II/Spiellogik Pseudocode b/Meilenstein II/Spiellogik Pseudocode index 9ef54d7..7b5fa7f 100644 --- a/Meilenstein II/Spiellogik Pseudocode +++ b/Meilenstein II/Spiellogik Pseudocode @@ -1,4 +1,5 @@ -PreGame: +PRE GAME: +---------------------------------------------------- int spielerzahl = 6; //Default setting @@ -21,13 +22,31 @@ Creats an array of random numbers 1 - spielerzahl Create Passengers -> use fillTrain array to position one after another Start with clients till we run out, then create npc' + Save Passengers in an array (Positions corresponding to index+1) -Gostyfy +Gostyfy first time, create first ghost -Throw out +IN GAME +---------------------------------------- +Night: +Vote Ghosts (can only vote for non-Ghosts os needs to be verified) +-> Timer! +-> last Human? -> End of the Game (break out of a loop?) "Ghosts win" +Ghostyfycation +Send Messages ("You have been ghostyfied", "You heard something suspicious") + +Day: +Vote Humans (Ghost votes don't count) +->Timer! +-> OG Ghost? -> End of the Game "Humans Win" +Evtl. kickoff (non OG-Ghosts) +Send Messages ("X Has been kicked off", "Not a Ghost") + +repeat + + +How do we handle the End of the Game? -Vote -Ghost vote needs validation (only humans can be chosen)