ForumsForum GamesRoll A Dozen: Revived

688 161285
apldeap123
offline
apldeap123
1,708 posts
Farmer

Welcome back to one of my old games, Roll A Dozen! Due to some personal reasons, i was unable to keep the original Ra12 game alive. Thus, I have created a new thread to continue the game!

Once again, here are the objectives:

Objective:

- Players must reach exactly 12 to win.

How to Play:

- A six-sided die is used.
- The player must roll the die. If an even number is used (e.g, 2, 4, 6),
you add that number to the previous rolled number.
- If an odd number is rolled (1, 3, 5) you subtract that amount from the
previous number.
- A new count always begins with the number 1.
- The player who restarts the count must roll the dice and add/subtract the
resulting number from 1.
- The count must be restarted if:
- The count reaches zero or goes into negative numbers.
- A player rolls the same number as the previous poster.

Example:
P1: 1 (dice rolled 4) 1+4=5
P2: 5 (dice rolled 2) 5+2=7
P1: 7 (dice rolled 3) 7-3=4
P3: 4 (dice rolled 3) restart

Things to Remember:

- You can back-to-back post! Just don't post three times in a row.

Once a successful count has been reached, please notify me in my profile comments.

Now, let's begin!

  • 688 Replies
sciller45
offline
sciller45
2,861 posts
Justiciar

5. Except for this one. This one just wants to see people suffer.
1d6=6
5 + 6 = 11
I take it back!

DICE RESULTS
6 = 1d6
Yellowcat
offline
Yellowcat
2,869 posts
Treasurer

10. We could win with a roll of 2...
1d6=6
10+6=16

DICE RESULTS
6 = 1d6
sciller45
offline
sciller45
2,861 posts
Justiciar

16. Well not anymore! We need at least 3 more throws to win now.
1d6=5
16 - 5 = 11
Isn't that quite lucky!

DICE RESULTS
5 = 1d6
Yellowcat
offline
Yellowcat
2,869 posts
Treasurer

I was inspired and wrote the game in Python:
import random
count=1
posts=0
lastnumber=7
roll=0
while count !=12:
print "Current count is: " + count.__str__()
roll = random.randint(1,6)
print "You rolled a " + roll.__str__()

if roll % 2 == 0:
print count.__str__() + " + "+roll.__str__()+ " = "+(count+roll).__str__()
count += roll
else:
print count.__str__() + " - " + roll.__str__() + " = " + (count - roll).__str__()
count -= roll

posts += 1

print "New count is %s"%count
if roll == lastnumber:
count = 1
posts = 0
lastnumber = 7
print "Ut oh, you rolled the same number twice. Reset. "

if count > 0:
x=12
else:
count = 1
posts = 0
lastnumber = 7
print "Went negative, reset. "
lastnumber=roll
print
print "You won! It took %s posts to get to 12." %posts

PLGuy
offline
PLGuy
4,755 posts
King

11. Nice game. I'd compile it to VB, but I'm too lazy. Why is there lastnumber=7 ?
1d6=6
11+6=17

@sciller45 You miscalculated that one man.

DICE RESULTS
6 = 1d6
Yellowcat
offline
Yellowcat
2,869 posts
Treasurer

17. @PLGuy I use that as a reset, although using 0 would make more sense.
1d6=2
17+2=19

DICE RESULTS
2 = 1d6
sciller45
offline
sciller45
2,861 posts
Justiciar

19. Miscalculated it? How? I'm counting my throw it would go: 16 - 5 (11) - 1 (10) + 2 And you have 12!
1d6=3
19 - 3 = 16

DICE RESULTS
3 = 1d6
sciller45
offline
sciller45
2,861 posts
Justiciar

22. Nonchalantly? I am going to roll my die photosyntesis!
1d6=5
22 - 5 = 17

DICE RESULTS
5 = 1d6
sciller45
offline
sciller45
2,861 posts
Justiciar

1. X[]
1d6=6
1 + 6 = 7
Man, I'm on a roll with these large numbers, pun definitely intended!

DICE RESULTS
6 = 1d6
Yellowcat
offline
Yellowcat
2,869 posts
Treasurer

7. Stay tuned for me writing this game in Java this time!
1d6=1
7-1=6

DICE RESULTS
1 = 1d6
sciller45
offline
sciller45
2,861 posts
Justiciar

6 Come ON! Six!
1d6=1
6 - 1 = 5
And that is how my roll broke :|

DICE RESULTS
1 = 1d6
Yellowcat
offline
Yellowcat
2,869 posts
Treasurer

Here's this game in Java:
import java.util.*;
public class RA12 {

public static void main(String[] args) {
Random rand = new Random();
int posts=0;
int count=1;
int lastnumber=7;
int roll;
while (count !=12) {
System.out.println("Current count is: "+count);
roll = rand.nextInt(5)+1;
System.out.println("You rolled a "+roll);

if (roll%2==0) {
System.out.println(count+" + "+roll+" = "+(count+roll));
count+=roll;
}else {
System.out.println(count+" - "+roll+" = "+(count-roll));
count-=roll;
}

posts++;
System.out.println("New count is "+count);

if (roll==lastnumber) {
System.out.println("Ut oh, you rolled the same number twice! Reset."
count = 1;
posts = 0;
lastnumber = 7;
}else {
lastnumber=roll;
}


if (count<=0) {
System.out.println("Ut oh, the count reached 0 or went negative! Reset.&quot;
count = 1;
posts = 0;
lastnumber = 7;
}
System.out.println();
}
System.out.println("Congrats! It took "+posts+ " posts to get to 12.&quot;

}

}

sciller45
offline
sciller45
2,861 posts
Justiciar

7. How did I not realise?
1d6=6
7 + 6 = Ha, this time, I did not look over it.

DICE RESULTS
6 = 1d6
sciller45
offline
sciller45
2,861 posts
Justiciar

7. I'm trying as hard as I can,
1d6=6
7 + 6 = Double six = restart
But the die just won't listen!

DICE RESULTS
6 = 1d6
Yellowcat
offline
Yellowcat
2,869 posts
Treasurer

1. Try HARDER!!
Imnottryingveryhardthoug = 1
Whoops.

DICE RESULTS
1 = Imnottryingveryhardthoug
Showing 481-495 of 688