+ 4

Help! Trying to splice 2 def outputs

I am trying to find a way to show a game sequence turn by turn using a definition. I can build a game sequence for a player, but it must run the entire sequence before commencing the 2nd player. I believe I must incorporate the splice inside the definition, allowing for number of players, but I can't figure out how to do this. My attempt attached below. Thanks for any feedback https://code.sololearn.com/c65z4dpoLaeZ/?ref=app

24th Mar 2020, 2:14 AM
Rik Wittkopp
Rik Wittkopp - avatar
4 Antworten
+ 2
WhyFry which is good for determining which player goes first, but does not splice the outputs of the 2 definitions together
24th Mar 2020, 4:50 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Mirielle(20k XP Monthly till November [2020]) I changed the line while beetle <2: to while beetle <16: which seems to now make it splice together. Thanks Heaps
24th Mar 2020, 4:54 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Hi WhyFry My program outputs all of player1's turns before showing player2. I am trying to get an output similar to: Turn1 Player1 output results Player2 output results Turn2 Player1 output results Player2 outpit results I hope this makes it a bit clearer
24th Mar 2020, 4:43 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Mirielle(20k XP Monthly till November [2020]) Thanks for your input, I will look at it.
24th Mar 2020, 4:45 AM
Rik Wittkopp
Rik Wittkopp - avatar