From b76a4667d26f78ff9ad1ee67eeefeeb2f1e452f3 Mon Sep 17 00:00:00 2001 From: Seraina Date: Fri, 18 Mar 2022 11:01:06 +0100 Subject: [PATCH] Started some Brainstorming --- Meilenstein II/Spiellogik Pseudocode | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/Meilenstein II/Spiellogik Pseudocode b/Meilenstein II/Spiellogik Pseudocode index e69de29..d60cca7 100644 --- a/Meilenstein II/Spiellogik Pseudocode +++ b/Meilenstein II/Spiellogik Pseudocode @@ -0,0 +1,32 @@ +PreGame: +int spielerzahl = 6; //Default setting + + +Fill train -> Randomize + String[] fillTrain(int spielerzahl, String... usernames) //... arbitrary amount of usernames, gives Array I think^^ + if spielerzahl < #usernames + throw some sort of exception + + String[] userTrain = new Strin[spielerzahl]; + for (int i = 0; i < spielerzahl; i++) + Randomliy choose one username + ->Maybe: Random nr. 0-spielerzahl + if randomnr hasnt been used before + userTrain[i] = usernames[randomnr] + + return userTrain + + + + + + + +Gostyfy + +Throw out + +Vote + +Ghost vote needs validation (only humans can be chosen) +