Monopoly, a work in progress... - Printable Version
+- The QB64 Edition (http://qb64.thejoyfulprogrammer.com)
+-- Forum: QB64 Member Projects (/forumdisplay.php?fid=483)
+--- Forum: QB64 Coders Delight (/forumdisplay.php?fid=8)
+---- Forum: Video Games (/forumdisplay.php?fid=12)
+----- Forum: Board Games (/forumdisplay.php?fid=18)
+----- Thread: Monopoly, a work in progress... (/showthread.php?tid=158)
Monopoly, a work in progress... - Kobolt - 09-06-2014 03:55 PM
Well here is a prototype copy of Monopoly I've been working on for a while now, this is just the startup of the game, title screens, number of players, human or computer controlled, name, game icon, game options. Its not quite to the point of being able to be played just yet. right now the keys that are used are ENTER, ESC, and the arrow keys. this will eventually be customizable. however using the ENTER key to step past the title screens can cause it to skip the number of players screen. this is an issue that I(along with others) have been battling with for some time in QB64. something to do with the KEYHIT buffer we believe.[attachment=250][attachment=251]
Monopoly64.rar - compiled version, contains the EXE and DAT file
Monopoly64SOURCE.rar- this is the source files for monopoly that have been finished or are currently being
finished. there are several core functions for the actual game play that have not been
added to this as of yet (this includes most of the stuff that STxAxTIC helped me with)
these will come to be added as the game play portion is in development. QB64 GL will
be needed to compile these(may work with the SDL version but I haven't tried it yet)
SCREENSHOT ADDED BY ADMINISTRATOR:
RE: Monopoly, a work in progress... - Kobolt - 09-16-2014 10:41 PM
Okay, a little back ground on this game,(or at least my version so far) I was playing this with an emulator a few months ago and found it enjoyable but limited, as there are no options for 'HOUSE' rules nor network play. Now even though I will be adding my own options to the game I am trying to keep to the original game play as much as I can. I'm actually questioning my ability to network the game over the internet(I've tested very simplistic networking with my home network.) but I will put more into this once I get the game itself functional.
As I complete various aspects of the game itself I will post updated compiles and source. the next upload should be of the finished game setup. as this contains most the functionality of the game itself there wont been much to do for basic game play. just have to wait and see how things go.
RE: Monopoly, a work in progress... - Waltersmind - 09-21-2014 03:30 AM
As I mentioned on the chatroom, if you need any help with your project, please let us know.
The Joyful Programmer
RE: Monopoly, a work in progress... - Waltersmind - 09-23-2014 03:24 AM
Here is my answer to your question on the chatroom, about how to spread out the houses on the properties:
Code Snippet: [Select]
One thing to note, this only works with 2 or 3 properties per group. If you use this algorithm for higher properties, the 0.125 needs to change. Once I got the 2 & 3 properties per group working, I stopped. I did try 4 properties in a group and the algorithm failed. But since this is for Monopoly, which only has 2 & 3 properties per group that can have houses (and hotels), I didn't feel the need to perfect the formula.
HERE IS A SCREEN SHOT:
The Joyful Programmer
RE: Monopoly, a work in progress... - Kobolt - 10-10-2014 12:30 AM
Well it took a little longer than I had hoped but here is a test run through the game setup options. everything 'should' work, there is some animations I just realized I've forgotten and the Load Custom Game option is on the back burner for the moment. the keys are Enter & Esc (arrow keys too) but their usage is a little erratic, sometimes the enter is A and sometime its B, I'll get it straightened out later. This gets you right up to the point of being able to play, the next screen basically tells the player who goes first. Play around with it see if you can get some bugs to rear their ugly heads. There maybe some range checking thats been left out (concerning the houses and hotels, may go negative but I'm pretty sure its range checked.) and error messages, when placeing houses\hotels, aren't setup to display yet. This is mainly dealing with trying to put too many houses on a set of properties or too many hotels. At the moment it will simply skip not telling you that it was an illegal action, it wont place the houses or hotels though(least it shouldn't).
the RAR file contains an exe if you just want to give it a whirl, and it has the source too if you just want to get a headache!. everything should work, but those tend to be last words...
included some minor bug fixes and an information screen at start up describing what keys are used.
way behind due to some rewriting to fix some ugly bugs and allow for sounds! but I am still working on it!
RE: Monopoly, a work in progress... - thelasttruegreatamerican - 02-19-2017 09:03 PM
Whatever happened to this?
RE: Monopoly, a work in progress... - Kobolt - 07-14-2017 08:24 PM
What happened to it? nothing really, I hit a roadblock figuring out how to implement the AI for the computer players. Then I spent all last year flipping the house that we moved into at the beginning of this year. I still can't figure out how to implement the AI which is where the code pretty much is stuck. The AI plays a big part in the trading, buying and auctioning properties routines. While I have been playing with the networking code in QB64 until the main code is done I can't add the networking to it. I'll continue to work with my networking routines until I can come up with an eureka! moment for the AI.
There are 8 possible computer opponents and each one 'behaves' in a slightly different way.
RE: Monopoly, a work in progress... - easylangs - 07-14-2017 09:18 PM
i think the cheap old-fashioned way is to figure out what the perfect/ideal/optimised thing for the ai to do would be, and then "weight" some or other aspects of that differently to get your other "levels" of difficulty or in this instance, other players.
im no expert on the old-fashioned way to do it, if im making it up im happy to take the credit-- but i think more likely it was common practice. a vague hint to be sure-- hey, i dont write games.