• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Java Monopoly Game AI and Neetwork

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi I am a beginner Java programmer and for the last couple of weeks I have started to develop a Monopoly Game.Everything has gone very well and the game works in Player vs Player mode exactly the way I want it to work so far.I also created a dum AI that at the momentonly rolls and buys teritories.This is where I hit a wal , I have no Ideea how I should set the rulles for the AI so it can be more chalanging.

The first thing if I would like is if anyone can give a link t a Monopoly game with an AI (dosent mater if it has a src or not what matters if I can download it) so I can have a pick on what kind of rules I should set to the AI.

The second part is that I would also like some fast resources if anyone knows for how I can make the game playable via network.The same concepts will probably be aplied in a chat witch I would also like to add to the game but if not some aditional resources will be very mutch aprecieted.

Thank you!
 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I'm not sure, but I would start by making it differentiate between more valuable territories. for example, if the player holds 2/3 green territories, the AI would prioritize the green territory not owned by the player. It's been a while since I played monopoly, but maybe something like that would work. Sorry I couldn't be a bigger help.
 
Greenhorn
Posts: 13
Firefox Browser Notepad Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I suggest finding some good books to read on AI, it's a pretty difficult subject and it requires a lot of planning.

On the networking side you should research socket programming. Should start with say: http://docs.oracle.com/javase/tutorial/networking/sockets/ and you will probably also need some knowledge on threading. You can find the basic info at http://docs.oracle.com/javase/tutorial/essential/concurrency/.

If you want I'm sure you could find some libraries for chat clients all over the internet, generally, just use google.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic