Conquer Club

Risk compared to Backgammon

Talk about all things related to Conquer Club

Moderator: Community Team

Forum rules
Please read the community guidelines before posting.

Risk compared to Backgammon

Postby premio53 on Sat Nov 24, 2012 6:25 pm

I have played Backgammon for many years and realize how strong computers have come vs humans by simply knowing dice probabality. Would it be possible for someone to create a Risk program on any one specific map that would play beyond any human's ability? A computer program that would take into account dice probability along with strategy on a specific map? I believe it would be very much possible.
Lieutenant premio53
 
Posts: 256
Joined: Sun Jul 29, 2007 9:09 pm

Re: Risk compared to Backgammon

Postby premio53 on Sat Nov 24, 2012 6:53 pm

I might add for those who aren't familiar with Backgammon that computers don't win every game but over a series of games (called matches) computers will almost always win even against the top human players. I don't see why the same thing couldn't happen on a given map on Conquer Club that is obviously more complicated than Doodle.
Lieutenant premio53
 
Posts: 256
Joined: Sun Jul 29, 2007 9:09 pm

Re: Risk compared to Backgammon

Postby TeeGee on Sat Nov 24, 2012 8:28 pm

It's not only possible, it has been done a few times, there are a few "risk" programs out there with various levels of artificial intelligence.
Image
User avatar
Major TeeGee
Multi Hunter
Multi Hunter
 
Posts: 6787
Joined: Sat Nov 11, 2006 5:07 pm
Location: Traversing the Multiverse, looking for a Yak with 3 ears

Re: Risk compared to Backgammon

Postby Metsfanmax on Sat Nov 24, 2012 8:30 pm

I started coding one for the Classic map a couple years back, but lost interest before I finished it. It's fairly simple to code in principle, and the Classic map is small enough that you should be able to brute force it on a 1v1.
User avatar
Sergeant 1st Class Metsfanmax
 
Posts: 6722
Joined: Wed Apr 11, 2007 11:01 pm

Re: Risk compared to Backgammon

Postby Army of GOD on Sat Nov 24, 2012 8:30 pm

Little do you know that I am an actual computer.
mrswdk is a ho
User avatar
Lieutenant Army of GOD
 
Posts: 7187
Joined: Tue Feb 24, 2009 4:30 pm

Re: Risk compared to Backgammon

Postby premio53 on Sat Nov 24, 2012 8:51 pm

TeeGee wrote:It's not only possible, it has been done a few times, there are a few "risk" programs out there with various levels of artificial intelligence.

I have "RisK II" but it is far from world class as far as playing strength in my opinion. "GnuBackgammon" and "Snowie" are a couple of world class programs that will beat even the human World Backgammon Champion in matches. If there was a comparable program for Risk I believe it would get some kind of recognition.
Lieutenant premio53
 
Posts: 256
Joined: Sun Jul 29, 2007 9:09 pm

Re: Risk compared to Backgammon

Postby Kaskavel on Sun Nov 25, 2012 5:46 am

Army of GOD wrote:Little do you know that I am an actual computer.


Lol...
Seriously now...
For a very strong program in strategy games, we typically need a strong sponsor to support the procudure. It is not a coincidence that most money have been invented in chess programs, then in checkers, othello, go and backgammon and then for others. I imagine we will not find out soon how strong can a computer in RISK, because the world influence of the game is not so big as other games (it is, but not as much as the other games I mentioned). A program created by an amateur will definitely be interesting, but probably not the maximum our technology can do.
Colonel Kaskavel
 
Posts: 395
Joined: Wed Jun 30, 2010 8:08 pm
544

Re: Risk compared to Backgammon

Postby frankiebee on Mon Nov 26, 2012 5:37 am

The problem with Risk is that it is most of the times more than 2 players. In 6 players games responding on the opponents strategy is as important as your own strategy. This would make it hard for a computer to get a significant advantage...
Colonel frankiebee
 
Posts: 493
Joined: Wed Nov 08, 2006 2:05 pm
Location: Wildervank/Leeuwarden

Re: Risk compared to Backgammon

Postby Metsfanmax on Mon Nov 26, 2012 6:48 pm

frankiebee wrote:The problem with Risk is that it is most of the times more than 2 players. In 6 players games responding on the opponents strategy is as important as your own strategy. This would make it hard for a computer to get a significant advantage...


Game-playing algorithms don't really know about strategy to begin with. If you can brute force your way through all the possible scenarios, it doesn't matter what your opponent's strategy is; you're still going to be making the best objective move. The problem is that with six players, it becomes increasingly more computationally demanding to sort out all the possible plays.
User avatar
Sergeant 1st Class Metsfanmax
 
Posts: 6722
Joined: Wed Apr 11, 2007 11:01 pm

Re: Risk compared to Backgammon

Postby Chariot of Fire on Mon Nov 26, 2012 9:09 pm

Interestingly if you take perhaps the most complex game (chess) with its myriad of strategies and permutations, you only have 20 possible options on your opening move. Thereafter it becomes exponential as the board opens up. Risk on the other hand has many many more options on your opening move, but thereafter those options remain pretty constant (even diminishing oft times). Factor in the dice - not applicable in chess - and you could easily see how much better a program could be than a human at quickly determining the odds for each possible move. It's very interesting to read about Deep Blue if you're not already familiar with its history (and its rather sad demise when IBM dismantled it). It nevertheless would always require human intervention between games, otherwise a set sequence of moves would always be met by the same response - thus revealing more and more about Deep Blue's programming and ways of countering it.

Disagree with Mets statement re algorithms 'knowing strategy' to some extent (but then I know nothing of technology but everything to do with strategy games) as every game-playing program has a catalogue of strategies from which it adopts at the opening. It will play one strategy, recognise the opponent's strategy and immediately compute whether it will win or lose if it sticks to its original gambit and respond accordingly.

Tech today would make for a far more efficient (and formidable) computer than Deep Blue, whose real strength lay in its ability to compute 200 million moves per second (an extraordinary advantage in tourney-playing conditions under the clock) rather than its software.

Back on topic....Risk & Backgammon....I'd have thought a backgammon program would be much simpler to perfect. Anyone thoroughly proficient at the game realises that there are standard 'best' moves for every roll and that when two players of equal ability face one another then it really does come down to simple luck of the dice.
User avatar
Brigadier Chariot of Fire
 
Posts: 3601
Joined: Wed Oct 24, 2007 8:13 am
Location: Buckinghamshire U.K.

Re: Risk compared to Backgammon

Postby Metsfanmax on Mon Nov 26, 2012 9:18 pm

Chariot of Fire wrote:Disagree with Mets statement re algorithms 'knowing strategy' to some extent (but then I know nothing of technology but everything to do with strategy games) as every game-playing program has a catalogue of strategies from which it adopts at the opening. It will play one strategy, recognise the opponent's strategy and immediately compute whether it will win or lose if it sticks to its original gambit and respond accordingly.


It only does that for games like chess because you can't brute force the whole game, so those opening catalogs are important for saving on calculation time. But even so, what's really going on is that certain lines are given more weight than others. Now, there is some subjectivity to it when you can't brute force fully, because you have to come up with a way to score certain positions, but that's not computer 'strategy', that's just a way to make the calculation possible.

Tech today would make for a far more efficient (and formidable) computer than Deep Blue, whose real strength lay in its ability to compute 200 million moves per second (an extraordinary advantage in tourney-playing conditions under the clock) rather than its software.


Well, modern software like Rybka is really only a few hundred ELO points above Deep Blue (better than any human, of course). The algorithms have gotten much more efficient for a given processing time, for sure.
User avatar
Sergeant 1st Class Metsfanmax
 
Posts: 6722
Joined: Wed Apr 11, 2007 11:01 pm

Re: Risk compared to Backgammon

Postby pickleofdoom on Mon Nov 26, 2012 10:14 pm

AIs will have no great problems with the dice probabilities. But there is also a traveling salesman type problem which arises when making a sweep, to path all the kills efficiently. This is the kind of thing where the human mind might be expected to work better than computers.
User avatar
Colonel pickleofdoom
 
Posts: 273
Joined: Sun Nov 15, 2009 3:49 am
Location: All around my hat

Re: Risk compared to Backgammon

Postby premio53 on Tue Nov 27, 2012 10:00 am

I didn't realize it but there have been entire books written on developing Artificial Intelligence for the game of Risk. Here is an excerpt of one conclusion reached.

http://www.google.com/url?sa=t&rct=j&q= ... kvQ4QCpzhQ

Risk is a very complex game, with both infinite game-state and game-tree complexities.
Even calculating a good approximation of the average complexity of the game proves to
be complex.

My work has shown that it is crucial in Risk to combine several actions to achieve a
high-level goal. The addition of just a single pre-defined high-level goal paired with the
means to combine several actions to achieve it, has increased the probability to win a
game by more than 60 times (Section 7.3.2), while the addition of just a high-level goal
has increased the probability by almost 20 times.

I believe that the key to building very strong Risk players are dynamic plans. Instead
of having three pre-defined high-level goals, the player would have to define reasonable
goals1 on its own using the evaluation function. Then a plan would have to be created
that would connect the actions of the player in a way that provides the highest probability
of achieving that goal. Of course, after each decision the situation would have to be re-
evaluated, though that might prove to be infeasible.

If the evaluation function determined for which high-level goal a plan would be made,
the evaluation function, and subsequently TD learning, too, would have a major effect on the playing strength.
Lieutenant premio53
 
Posts: 256
Joined: Sun Jul 29, 2007 9:09 pm

Re: Risk compared to Backgammon

Postby Funkyterrance on Tue Nov 27, 2012 10:36 am

Army of GOD wrote:Little do you know that I am an actual computer.


*flips over AoG*
Yup, says right here: "Made in Bangladesh".
User avatar
Colonel Funkyterrance
 
Posts: 2494
Joined: Wed Jan 19, 2011 10:52 pm
Location: New Hampshire, USA

Re: Risk compared to Backgammon

Postby Haggis_McMutton on Tue Nov 27, 2012 10:46 am

Metsfanmax wrote:
frankiebee wrote:The problem with Risk is that it is most of the times more than 2 players. In 6 players games responding on the opponents strategy is as important as your own strategy. This would make it hard for a computer to get a significant advantage...


Game-playing algorithms don't really know about strategy to begin with. If you can brute force your way through all the possible scenarios, it doesn't matter what your opponent's strategy is; you're still going to be making the best objective move. The problem is that with six players, it becomes increasingly more computationally demanding to sort out all the possible plays.


Well, first of all, with 6 players it seems extremely intractable. Assuming a ridiculously small branching factor of 3. it would take you 3^6 branches to go to depth 1. Assuming again a ridiculously low 10 rounds maximum game length, that gives you 3^60 branches in the complete game tree, which is of course absurd. Yeah, pruning will help but still it's way off.

Secondly, now that min-max fails you have to derive a evaluation function for intermediate nodes. This seems to me EXTREMELY more difficult to do in 6 player risk than in chess. For instance, is it a good thing to have 30% of the armies with all of the 6 players still alive? Or does it mean they will now gang up on you ?
Is it a good thing to have a large bonus? Or does it's size assure that you'll lose it before your next turn.
How does the relative capability of the opponents factor into these kinds of decisions? What about diplomacy, should you be able to offer truces?

I think a world-class Risk AI (in multiple player games) is way off. We don't even have world class poker AIs yet.
Highest score: 3063; Highest position: 67;
Winner of {World War II tournament, -team 2010 Skilled Diversity, [FuN||Chewy]-[XII] USA};
8-3-7
User avatar
Major Haggis_McMutton
 
Posts: 403
Joined: Sun Mar 26, 2006 11:32 am

Re: Risk compared to Backgammon

Postby AslanTheKing on Tue Nov 27, 2012 5:49 pm

premio53 wrote:I might add for those who aren't familiar with Backgammon that computers don't win every game but over a series of games (called matches) computers will almost always win even against the top human players. I don't see why the same thing couldn't happen on a given map on Conquer Club that is obviously more complicated than Doodle.


I win every game in backgammon against any computer, since i know what dice the computer will throw,
but this strategy is time-consuming , still works, i let him take as many stones as possible and close his home, and slowly i have all stones in my home,
and the computer loses, always, best regards, i think u have played backgammon many years but are not the best backgammon player,
best wishes aslan
I used to roll the daizz
Feel the fear in my enemy´s eyes
Listen as the crowd would sing:

Long live the Army Of Kings !


AOK

show: AOK Rocks
User avatar
Sergeant 1st Class AslanTheKing
 
Posts: 1223
Joined: Fri Jan 21, 2011 6:36 am
Location: Hamburg, Germany

Re: Risk compared to Backgammon

Postby Metsfanmax on Tue Nov 27, 2012 6:09 pm

Haggis_McMutton wrote:Secondly, now that min-max fails you have to derive a evaluation function for intermediate nodes. This seems to me EXTREMELY more difficult to do in 6 player risk than in chess. For instance, is it a good thing to have 30% of the armies with all of the 6 players still alive? Or does it mean they will now gang up on you ?
Is it a good thing to have a large bonus? Or does it's size assure that you'll lose it before your next turn.
How does the relative capability of the opponents factor into these kinds of decisions? What about diplomacy, should you be able to offer truces?


Well, sure, I'm not advocating a Risk AI for more than two players. But I also don't think these things are as problematic as you suggest, because to some extent you can empirically determine how to weight things instead of trying to figure that out computationally.
User avatar
Sergeant 1st Class Metsfanmax
 
Posts: 6722
Joined: Wed Apr 11, 2007 11:01 pm

Re: Risk compared to Backgammon

Postby nippersean on Tue Nov 27, 2012 6:39 pm

Well my thoughts - if a computer can beat Kasparov, then they have an outside chance of beating GLG.

Seriously, with enough resources a program would beat (be better) than everyone at this game. Without a doubt.

It is far more difficult to assess a chess position at the end of the algorithm than to calculate a 6 player KO. Always when the machine comes to the end of brute force it will have to assess who is better. This is way more difficicult in chess than it is in CC.

Difference is IBM unlikely to spend $1Bn+ on a CC program. I think it's rather silly to say CC / risk is more complex than chess.
Brigadier nippersean
 
Posts: 784
Joined: Sat May 30, 2009 7:47 am

Re: Risk compared to Backgammon

Postby premio53 on Tue Nov 27, 2012 6:40 pm

AslanTheKing wrote:
premio53 wrote:I might add for those who aren't familiar with Backgammon that computers don't win every game but over a series of games (called matches) computers will almost always win even against the top human players. I don't see why the same thing couldn't happen on a given map on Conquer Club that is obviously more complicated than Doodle.


I win every game in backgammon against any computer, since i know what dice the computer will throw,
but this strategy is time-consuming , still works, i let him take as many stones as possible and close his home, and slowly i have all stones in my home,
and the computer loses, always, best regards, i think u have played backgammon many years but are not the best backgammon player,
best wishes aslan

There are many weak programs out there. Download a copy of GnuBackgammon and even using manual dice it will wipe the floor with you.
Lieutenant premio53
 
Posts: 256
Joined: Sun Jul 29, 2007 9:09 pm

Re: Risk compared to Backgammon

Postby AslanTheKing on Tue Nov 27, 2012 6:43 pm

premio53 wrote:
AslanTheKing wrote:
premio53 wrote:I might add for those who aren't familiar with Backgammon that computers don't win every game but over a series of games (called matches) computers will almost always win even against the top human players. I don't see why the same thing couldn't happen on a given map on Conquer Club that is obviously more complicated than Doodle.


I win every game in backgammon against any computer, since i know what dice the computer will throw,
but this strategy is time-consuming , still works, i let him take as many stones as possible and close his home, and slowly i have all stones in my home,
and the computer loses, always, best regards, i think u have played backgammon many years but are not the best backgammon player,
best wishes aslan

There are many weak programs out there. Download a copy of GnuBackgammon and even using manual dice it will wipe the floor with you.


i am looking forward to it, i let u know whats the weakside of gnu backgammon, if u have a download site it would be helpfull,
just to make sure im downloading the right game.
I used to roll the daizz
Feel the fear in my enemy´s eyes
Listen as the crowd would sing:

Long live the Army Of Kings !


AOK

show: AOK Rocks
User avatar
Sergeant 1st Class AslanTheKing
 
Posts: 1223
Joined: Fri Jan 21, 2011 6:36 am
Location: Hamburg, Germany

Re: Risk compared to Backgammon

Postby premio53 on Tue Nov 27, 2012 6:47 pm

Just google GnuBackgammon. It is a free program. One of the strongest in the world.
Lieutenant premio53
 
Posts: 256
Joined: Sun Jul 29, 2007 9:09 pm

Re: Risk compared to Backgammon

Postby premio53 on Tue Nov 27, 2012 6:49 pm

The world Backgammon matches may go up to 21 or so using the cube but I doubt you will win even a 5 point match.
Lieutenant premio53
 
Posts: 256
Joined: Sun Jul 29, 2007 9:09 pm

Re: Risk compared to Backgammon

Postby AslanTheKing on Tue Nov 27, 2012 6:55 pm

just watch this movie, to understand what i meant with my longturn strategy, its similar


http://www.metacafe.com/watch/3734033/gnu_backgammon/
I used to roll the daizz
Feel the fear in my enemy´s eyes
Listen as the crowd would sing:

Long live the Army Of Kings !


AOK

show: AOK Rocks
User avatar
Sergeant 1st Class AslanTheKing
 
Posts: 1223
Joined: Fri Jan 21, 2011 6:36 am
Location: Hamburg, Germany

Re: Risk compared to Backgammon

Postby Haggis_McMutton on Tue Nov 27, 2012 7:28 pm

Metsfanmax wrote:Well, sure, I'm not advocating a Risk AI for more than two players. But I also don't think these things are as problematic as you suggest, because to some extent you can empirically determine how to weight things instead of trying to figure that out computationally.


Yeah, it's definitely a lot more tractable for 1 vs 1, though probably still not trivial.

I genuinely don't think anyone could make a world-class 6 player risk bot atm (well maybe if they sink a couple years of research into it). I base this mostly on the fact that there isn't a world class poker player out there for large-ish tables and poker is
a. probably simpler than risk
b. potentially worth a lot of money if someone figures this out.
Highest score: 3063; Highest position: 67;
Winner of {World War II tournament, -team 2010 Skilled Diversity, [FuN||Chewy]-[XII] USA};
8-3-7
User avatar
Major Haggis_McMutton
 
Posts: 403
Joined: Sun Mar 26, 2006 11:32 am

Re: Risk compared to Backgammon

Postby Kaskavel on Tue Nov 27, 2012 11:37 pm

nippersean wrote:Well my thoughts - if a computer can beat Kasparov, then they have an outside chance of beating GLG.

Seriously, with enough resources a program would beat (be better) than everyone at this game. Without a doubt.

It is far more difficult to assess a chess position at the end of the algorithm than to calculate a 6 player KO. Always when the machine comes to the end of brute force it will have to assess who is better. This is way more difficicult in chess than it is in CC.

Difference is IBM unlikely to spend $1Bn+ on a CC program. I think it's rather silly to say CC / risk is more complex than chess.


It is not accurate to state that strongest computer defeats strongest human in chess at this point of history. In all the 3 last matchs played (the one Kasparov won 3.5-2.5, the one Kasparov lost 3.5-2.5 and the last one Kramnik lost 3.5-2.5), the human player managed to win at least one game. And the last match was 2.5-2.5, about to end in a tie with the last game being a completely drawn position when Kramnik made a remarkable mistake for his level (blundering checkmate in one move) which is made once or twice in a lifetime for such a strong player. Anyway, the point is that computers have a stable level of performance in all games, calculating millions of moves. Humans do not. A single mistake will lead to defeat against machines. But if on their best performance, strongest human chess players can still defeat computers, which means both not making mistakes AND playing superior strategy, this means computers have not bypassed humans yet. At least for a few more years, lol
Colonel Kaskavel
 
Posts: 395
Joined: Wed Jun 30, 2010 8:08 pm
544

Next

Return to Conquer Club Discussion

Who is online

Users browsing this forum: No registered users