Jump to content
IGNORED

Backgammon AI Cheats


StanJr

Recommended Posts

Like there is no tomorrow.

 

I have never played a real game of Backgammon where doublets come so naturally. But in Atari Backgammon, the AI gets a doublet one out of every five tosses. Is it programmed to be a low-down dirty cheater or is it just exploiting shoddy programming?

 

Either way, it's making me insane.

 

:mad: :mad: :mad:

Link to comment
Share on other sites

Simply put, the random generator in the program sucks (for both players). IIRC it was a choice between rolling too many doubles or virtually none at all. As mentioned, you can dial in your own values.

 

Can it be hacked so it doesn't suck?

Link to comment
Share on other sites

Yeah...come up with a different routine for $C5 & $C6 ;)

 

One way that should make the results more-unpredictable would be to use one or both free bytes of ram memory to hold a random seed value to be passed to $C2 for the number of roll time frames (the game uses absolute value #$78 at LF347 - and does it again if bits 0-2 end up with a value of zero or seven). Or, you could alter how a "random" value is picked (ram location $E2 is just ROL'ed with whatever happens to be in carry status...which is why the same dice values appear frequently together).

 

It's easier just to use real dice ;)

 

 

The program is not intelligent enough to "cheat". The double-nines issue is a specifically-coded easter egg.

Link to comment
Share on other sites

No double nines, yet, but that would be cool to see.

 

Dialing in your own numbers is the worst kind of cheating. I would roll a six doublet every time and win for sure.

 

I guess I'll keep playing with the crappy dice, although the chance for a gammon is highly unlikely and a backgammon pretty much impossible.

 

Stupid shoddy programming.

Link to comment
Share on other sites

Revealing the easter egg can be done easily in board setup of Acey-Deucey...start the game with both difficulties set at B and select a higher number for the first die so that you have the first move. Block all 6 of it's opening spots so it has no valid opening moves, and flip Left Difficulty to A to make your move with one of the remaining stones. Give the dice a 1 and 2 roll for the computer's turn to allow it to pick doubles.

 

This is mistakenly called a programming bug on the Digital Press Easter Egg page:

http://www.digitpress.com/eastereggs/26backgammon.htm

 

Being allowed to pick doubles in this case IS a programming error (being unable to move the initial 1 and 2 should end it's turn according to the rules)...but the easter egg does not depend upon that mistake. It can be revealed any time the computer is allowed to pick doubles but has no valid moves for any dice value 1-6 (regardless of where the stones are).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...