Code your own AI for the board game Risk

B924862998ea032dd871ed54d7a3616c
0
dustin 101 Jul 23, 2004 at 08:01

The LuxAgent SDK provides everything that you need to create your own Risk playing AI. It includes API documentation as well as the GPLed java source code for the 10 AIs that I have written. The game engine used to run the AIs is the game Lux (bias alert - I created it), which can be run on Windows, Mac OS X, or Linux. It generalizes the board game Risk so that it can be played using any map. Each board can be nicely modeled as a graph of countries.

16 Replies

Please log in or register to post a reply.

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Jul 23, 2004 at 08:21

cool
could you elaborate on the AI ?

9ad30471312b0b26d5a64b510475128e
0
robocop 101 Jul 24, 2004 at 03:27

This is nice!
Could u tell me how exactly did u model it as graphs?

B924862998ea032dd871ed54d7a3616c
0
dustin 101 Aug 02, 2004 at 15:35

What sort of elaboration would you like? If you download the SDK there is lots more info inside. Basically it allows you to do anything that you can in the board game Risk.

It models itself as a graph. A map in Risk is a set of countries that connect to other countries. Thus it is exactly the same as a graph of nodes with some connections.

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Aug 02, 2004 at 16:49

i hereby encourage you to write a small article about your AI and publish it here on devmaster ;)

Fdbdc4176840d77fe6a8deca457595ab
0
dk 158 Aug 02, 2004 at 19:51

Good idea! :)

7543b5c50738e23b200e69fe697ea85a
0
NomadRock 101 Aug 25, 2004 at 18:02

This is a very very interesting idea. Especially being able to make your own maps. I have a bunch of friends who love risk. I will try to convince them to check it out.

  • nomad
6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Aug 25, 2004 at 18:06

WOHOOW NOMADROCK IN HERE! :D

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Aug 25, 2004 at 20:22

you know each other ???

6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Aug 25, 2004 at 20:38

all fellow flipcoders:D

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Aug 25, 2004 at 20:40

yeah, i figured…

6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Aug 25, 2004 at 20:42

hehe:D

7543b5c50738e23b200e69fe697ea85a
0
NomadRock 101 Aug 25, 2004 at 23:02

Yeah, I have been posting alongside dave for a while now. Now if only we can migrate the Epic boys we will be in business.

F7a4a748ecf664f189bb704a660b3573
0
anubis 101 Aug 25, 2004 at 23:10

so, welcome to you, too

B924862998ea032dd871ed54d7a3616c
0
dustin 101 Aug 25, 2004 at 23:19

Well I don’t know any of you, but I have been getting notifies of replies since I started this thread. There’s a guy named EpicBoy at the indiegamer forum which I frequent. Here’s his user page: http://forums.indiegamer.com/member.php?u=35

7543b5c50738e23b200e69fe697ea85a
0
NomadRock 101 Aug 26, 2004 at 04:17

hehe, no sorry. I meant the guys who actually work at the company Epic making the Unreal engine. There are several over at flipCode, some very bright guys too. I am partial however, as they are all in possesion of my dream job. Oh well, back to working on Uni courses.

6ad5f8c742f1e8ec61000e2b0900fc76
0
davepermen 101 Aug 26, 2004 at 12:30

hm.. that rises my question how professional is each one of you.. i was coworker at starcraft3d till blizzard got unhappy… :D

that risk game sounds funny. though, i never played risk..