
-----------------------------------
Johno
Mon Jun 05, 2006 3:10 pm

The game of risk
-----------------------------------
Hello, I was wondering what the easiest way would be to make the game of risk?

-----------------------------------
TheOneTrueGod
Mon Jun 05, 2006 3:27 pm


-----------------------------------
Well, the easiest way would be to go out, buy the board game, take a permanent black marker, and cross out the creators name, and write your own in.

If you are referring to making it in Turing, I suggest you read the Turing FAQ (Located conveniently at the top of the [Turing Help] section)

-----------------------------------
Cervantes
Mon Jun 05, 2006 3:56 pm


-----------------------------------
Risk would be a very complicated game to make. Possible trouble spots include graphically drawing the world and determining which country you click inside. 

If you have a specific question about part of a Risk game, ask away. Otherwise, your question is very general and can really only be given a very general answer: the Turing Walkthrough.

-----------------------------------
Johno
Mon Jun 05, 2006 6:12 pm


-----------------------------------
well I took a screen shot of the computer game for the map, but as far as making the dice 3D, and such, like what would be the eaisest way, or would it be easier to make it 2D, with a GIF.button that says roll

-----------------------------------
Dodad bouldershoulder
Tue Jun 06, 2006 9:49 am


-----------------------------------
Risk is the most amazing game ever. It's sweet. Yahh, but making a risk game would be hard, but if you ever get it, make sure you post it!!! :think:

-----------------------------------
Clayton
Tue Jun 06, 2006 11:17 am


-----------------------------------
probably the best way to make dice and such is with a 3D engine (theres a couple of them kickin around the site check out Catalysts :D ) as for making it roll, dont use GIFs as Turing is not compatible with GIFs (unless you are using 4.1)

-----------------------------------
Johno
Tue Jun 06, 2006 3:10 pm


-----------------------------------
which I am, but would randint be easier

-----------------------------------
Clayton
Tue Jun 06, 2006 4:41 pm


-----------------------------------
use Rand.Int to actually determine the number on the die and then draw the dice using a 3D generator :D

-----------------------------------
Johno
Tue Jun 06, 2006 5:40 pm


-----------------------------------
yes but how you make it so attack rolled 3 dice,and defender two?

-----------------------------------
[Gandalf]
Tue Jun 06, 2006 6:52 pm


-----------------------------------
fcn diceValue : int
    result Rand.Int (1, 6)
end diceValue
put "Attack Dice:"
for i : 1 .. 3
    put diceValue
end for
put "Defend Dice:"
for i : 1 .. 2
    put diceValue
end for
Or, if you wanted to store all the values you could use arrays:
fcn diceValue : int
    result Rand.Int (1, 6)
end diceValue
var attackDice : array 1 .. 3 of int
var defendDice : array 1 .. 2 of int
for i : 1 .. upper (attackDice)
    attackDice (i) := diceValue 
end for
for i : 1 .. upper (defendDice)
     defendDice (i) := diceValue 
end for
Note: I tried to keep this as simple as possible.  If you don't know functions (or arrays) yet, I suggest you learn them before taking on a project like this.

-----------------------------------
Johno
Tue Jun 06, 2006 6:57 pm


-----------------------------------
I know how to use everything, I just dont know how to put it all together
