The Hotness
Games|People|Company
Dominion: Dark Ages
Total War
Mage Knight: Board Game
Fantastiqa
Libertalia
The Lord of the Rings: Nazgul
Descent: Journeys in the Dark (Second Edition)
Eclipse
Mice and Mystics
Doctor Who: The Card Game
Lords of Waterdeep
Star Wars: X-Wing Miniatures Game
Agricola: All Creatures Big and Small
Dungeon Fighter
Android: Netrunner
Virgin Queen
A Game of Thrones: The Board Game (Second Edition)
Glory to Rome
Infiltration
Collapsible D: The Final Minutes of the Titanic
Dominion
The Lord of the Rings: The Card Game
Twilight Struggle
City of Horror
Snowdonia
1989: Dawn of Freedom
Goa
Sherlock Holmes Consulting Detective
Agricola
Among the Stars
7 Wonders: Cities
7 Wonders
The Swarm
Through the Ages: A Story of Civilization
Arkham Horror
Village
Ora et Labora
Battles of Westeros: House Baratheon Army Expansion
Race for the Galaxy
War of the Ring
Trajan
Kingdom Builder
The Castles of Burgundy
Zombicide
Twilight Imperium (third edition)
Space Alert
Dungeon Command: Sting of Lolth
Hacienda
Battlestar Galactica
Ground Floor

Musings from a not-so-serious gamer

Random thoughts from someone who loves the idea of games, spends way too much time on BGG, does actually play games, but isn't all that passionate about them.
Recommend
12 
 Thumb up
 tip
 Thumb up

Playing Caylus Magna Carta against the computer

Kevin B. Smith
United States
Margate
Florida
designer
Avatar
mbmbmbmbmb
About a week ago, I bought a copy of Caylus Magna Carta (CMC) in a BGG auction. Unfortunately, the seller let me know that he wasn't going to be able to send the game out until tomorrow (hopefully). Being impatient, and having read everything I could about the game, I really just wanted to play it.

Theoretically CMC is available online, but it's at jsp. I don't know if it is my lack of French, or that I run Linux, or that their site has problems, or just that I'm missing something. Whatever the reason, I have never gotten jsp to work (unlike Yucata and BSW, which are merely confusing, as opposed to unusable).

Fortunately, I'm a computer programmer, and I have written computer versions of several games. They tend to be crappy barebones implementations, with few if any graphics, no sound, and often requiring cryptic keyboard commands instead of mouse clicks. But they allow you to play the game.

So I decided to try creating a software version of CMC.

After about 30 hours of work, I have a version with almost all of the rules implemented. I haven't done the provost yet, nor the "free discard and redraw" at the start of the game, but both should be easy to add. I think I have all the other rules covered. To save time, I created a (very simplistic) AI first, and all my testing as I built the game engine was with two (or occasionally four) robots playing against each other.

Right now, it's just a scrolling, text-only, command-line app. I structured it in a way that it should be pretty easy to put a pretty interface on top of it at some point. I don't know if I would want to put a desktop GUI front end on it , or drop it into a web server for purely online play. Doing a desktop app would be easier, and would allow offline play against the AI. Later I could add the ability to play against other users across the internet.

Last night, I added the ability to accept human input, so I was able to play my first game ever of CMC. I was allowed to choose my actions each turn, and which buildings to remodel. I haven't yet added the ability for the human to make the smaller decisions, like what wildcard cubes to receive or pay with, or how many prestige tokens to buy, so the AI rules take over for those decisions. I have some ideas for how to make the AI much better without a lot of work, but it would probably take quite a bit of effort to make it truly competitive with experienced players.

The code is in Java, in case you're curious, and it's under 3000 lines of code so far.

I have emailed Ystari Games to see if I could get permission to release the game if I do end up getting it to the point where it would be useful to other people. It has only been a few days, and haven't heard back yet. Fingers crossed.
Twitter Facebook
6 Comments
Subscribe sub options Sun Jun 12, 2011 6:55 pm
Post Comment
Andrew P
United States
San Francisco
California
Avatar
mbmbmbmbmb
I've been playing at JSP constantly and recently acquired the physical game.

How does the AI work?
1 
 Thumb up
 tip
 Thumb up
  • Posted Mon Jun 13, 2011 12:25 pm
    • Choose your Dice
      • Roll
      • Comment (Optional)
    • Reply
    •  
    • Quote
Kevin B. Smith
United States
Margate
Florida
designer
Avatar
mbmbmbmbmb
fateswanderer wrote:
I've been playing at JSP constantly and recently acquired the physical game.

Thank for the report. Maybe I'll have to try yet again.

Quote:
How does the AI work?

My first AI is poorly structured. It basically steps through each possible type of action in order (worker, prestige building, regular building, discard, draw pass), stopping when it finds something that it can afford and feels would be helpful.

My second AI simply chooses randomly from all possible legal actions available at that moment (typically there are 5-10 in the list). Oddly, the random AI tends to beat the simple AI described above.

The third AI (which I will write next) will come up with a "net value" of any possible action. Of the highest-scoring actions, it will do the workers first (from highest value to lowest), and then the other actions (from highest value to lowest). It will also account for "reserves" that it will need to hold back in the worker activation phase, to avoid spending money or committing resources that it needs to get the benefit for a worker it placed.

Once I have that structure, I'll create multiple AIs that put different values on subjective things, effectively creating different personalities. One might focus on building the castle, while another might prefer prestige buildings. One might try to maximize its options, while another might try to limit its opponent's options.
 
 Thumb up
 tip
 Thumb up
  • Posted Mon Jun 13, 2011 1:07 pm
    • Choose your Dice
      • Roll
      • Comment (Optional)
    • Reply
    •  
    • Quote
Andrew P
United States
San Francisco
California
Avatar
mbmbmbmbmb
Thanks for the reply - do let us know how it turns out
 
 Thumb up
 tip
 Thumb up
  • Posted Mon Jun 13, 2011 1:28 pm
    • Choose your Dice
      • Roll
      • Comment (Optional)
    • Reply
    •  
    • Quote
Kevin B. Smith
United States
Margate
Florida
designer
Avatar
mbmbmbmbmb
fateswanderer wrote:
I've been playing at JSP constantly

Here is what I tried this morning:

1. Go to the registration page shown on the BGG JSP page ( http://www.jsp-mag.com/inscription.php ). 404 Error.

2. Go to the home page ( http://www.jsp-mag.com/ ). I get a CentOS page indicating the server has not been configured.

3. Go directly to the games page mentioned on the BGG JSP page ( http://www.jsp-mag.com/jeuxonline.php ). I get an almost-all-black page, with links to rules for 10 games, in 3 languages each. The names of the games are not visible, and there are no images.

4. On that page, doing a Select-All makes the game names visible, and one is CMC. However, CMC itself is not clickable. The only clickable things are the links to the rules themselves. Clicking on the rules link just takes me to the official rules PDF from Ystari's site.

5. Go to the JSP main page ( http://www.jeuxsurunplateau.com ). I get the front page of the magazine (apparently, as it is in French).

6. Click on the "Jeux en ligne", which says (in French) that I have to be signed in.

7. Click on the link that appears to be for creating an account ( http://www.jeuxsurunplateau.com/fr/creation-de-compte-membre... )

8. Enter info. Figure out that the password requires a digit. See a notice that I think says I will receive an email that is necessary to complete the registration. No email arrives. I don't see any way to have it re-send the email.

9. Go back to the "create account" page, but my username is no longer available. Still no link to resend the email.

10. Try to click on the FAQ in the create account page contents but it is not clickable. Clicking on the FAQ in the page header works. Use google to translate. No help for my situation.

11. Click on the "I forgot my login" link in the "login failed" dialog, but it has no effect at all (the URL just takes me back to the normal Create Account page).

12. Back to the home page. Click on the "Forgot?" link, which takes me to a page where I can get my password reset. It says it is sending me another email. Nothing shows up. Double-checked my spam folder. Sent myself a test email to make sure my email is working, and it arrives within seconds.

I think I'm at a dead end. I'll watch for their emails to arrive, in case they have been delayed (minutes) for some reason.

You can understand why I had given up on JSP earlier.
 
 Thumb up
 tip
 Thumb up
  • Posted Mon Jun 13, 2011 1:36 pm
    • Choose your Dice
      • Roll
      • Comment (Optional)
    • Reply
    •  
    • Quote
Kevin B. Smith
United States
Margate
Florida
designer
Avatar
mbmbmbmbmb
Five minutes later, I got my password reset email from JSP. The link inside was not clickable, but I copy/pasted it to my browser. It asked me to confirm my password (which doesn't make a lot of sense for a password reset process), which I did. It said (in French, of course), "You will receive an email with your new password in a few minutes to log on to the next session".

Sure enough, I did receive this email within a minute, which just told me my name and password which I already knew. Apparently now I am logged in. Yay!

Now I just have to figure out the system to join and play a game, in French.
 
 Thumb up
 tip
 Thumb up
  • Posted Mon Jun 13, 2011 1:46 pm
    • Choose your Dice
      • Roll
      • Comment (Optional)
    • Reply
    •  
    • Quote
Kevin B. Smith
United States
Margate
Florida
designer
Avatar
mbmbmbmbmb
fateswanderer wrote:
How does the AI work?


I haven't yet started coding a better AI, but here are the personalities I have thought of. I don't know if I'll actually do these or not, but they sound fun.

Babbette - Build a bundle per turn
Cathy - Builds the Cathedral (then other high-PP buildings)
Chuck - Uses the Church as much as possible
Connie - Constructs as many normal buildings as possible
Craig - CRaves Gold
Fremont - Only takes Free stuff
Preston - Builds as many prestige buildings as possible (starting small)
Turtle - Won't build anything
Val - Value seeker, will take whatever seems most valuable at that moment, with no long-term strategy

My actual game of CMC arrived, but so far I have only had a chance to try a solo trial game. I haven't spent any more time trying to figure out JSP. I kind of don't want to play much against humans (online) until I have a chance to try some in-person games.
1 
 Thumb up
 tip
 Thumb up
  • Edited Sat Jun 18, 2011 4:10 pm
  • Posted Sat Jun 18, 2011 4:09 pm
    • Choose your Dice
      • Roll
      • Comment (Optional)
    • Reply
    •  
    • Quote

Subscribe

Categories

Contributors

Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.