You are not logged in or registered. Please login or register to use the full functionality of this board...
SIGN IN Join Our Community For FREE


Quarto! Board Game in QB64
06-09-2015, 12:42 PM (This post was last modified: 06-10-2015 12:46 PM by Waltersmind.)
Post: #1
 (Print Post)
Quarto! Board Game in QB64
Hello everyone,

Quarto! is a 2 player board game played on a 4 X 4 game board with 16 different pieces. What's unique about this game is your opponent choose which piece you are going to play.

The object of the game is to get 4 pieces sharing 1 of 4 patterns. The 4 patterns are (1) all light or all dark pieces. (2) all tall or all short pieces. (3) all round or all square pieces. (4) all solid or all hollow pieces.

Each turn starts off with your opponent choosing the pieces for you to play. Then You place that piece on any vacant location on the board.

Controls: Mouse to choose piece to play and board location.

Hope you enjoy playing.

Donald










Attached File(s) Image(s)
                                                           

.bas  Quarto.bas (Size: 8.26 KB / Downloads: 52)
Find all posts by this user
Like Post
06-12-2015, 03:37 PM
Post: #2
 (Print Post)
RE: Quarto! Board Game in QB64
Donald,

Very nicely done as always! I am running out of things to say about each game you share as they are starting to all sound the same.

I will say this though, I really love the graphics (as I do with all your games) because not only are they great looking, but are created in code, which is how I love creating graphics in the first place (at least a obsession).

This game was very fun to play, and the way you made the game play was very easy for me to learn and use.

Nice graphics and great User Interface (as always Angel).

Thank you so much for sharing this awesome game. I have never heard of it before (as with a lot of the games you have shared), and it makes me want to go out and buy them.


Walter Whitman
The Joyful Programmer
a.k.a: Waltersmind
Please visit my website at: http://www.TheJoyfulProgrammer.com
Please subscribe to my YouTube Channel at: https://www.youtube.com/channel/UCkkN3_B...c9a1MoUr1A
Please visit me at FaceBook: https://www.facebook.com/thejoyfulprogrammer
Please follow me at Twitter: https://twitter.com/TheJoyfulProg
Please follow me at Google+: https://plus.google.com/+Thejoyfulprogrammer/posts
Please Visit me on Pinterest: https://www.pinterest.com/waltersmind/
Please Visit me on LinkedIn: https://www.linkedin.com/pub/walter-whitman/18/8b4/832

My goal is to bring joy, excitement, fun and education to all computer programming hobbyists, tinkerers, and amateurs. I also enjoy helping and working with those who aspire at becoming masters of their craft.
Find all posts by this user
Like Post
06-12-2015, 09:02 PM
Post: #3
 (Print Post)
RE: Quarto! Board Game in QB64
Hi Walter,
Thanks for the response. I was really pleased with the way board and pieces turned out. I'm sure I could have used Photo Shop and the pieces really nice with rounded corners and hi lights, but even though the pieces are a little rough on the ended, I think they turned out fairly good. I like using strings to store piece information. It's very compact. I used a 4 character string to make the pieces and check for a win. I really enjoy hand drawing my board and pieces using graphics statements.

Anthony,
This would be a great game for you to make an A.I. for if your interested? Has very simple rules and it's a very quick game to play. Let me know if your interested and I can modify this version and give the player the option of 2 human players or 1 player verses Anthony's Super AI Player. Ok, I got a little carried away, but it's still a great idea.

Donald
Find all posts by this user
Like Post
06-13-2015, 12:44 PM (This post was last modified: 06-13-2015 12:58 PM by Anthony.R.Brown.)
Post: #4
 (Print Post)
RE: Quarto! Board Game in QB64
Hi Donald

Yes! another nice Game I have never heard of (And I am a Games Person!) Sad

Regarding making the A.I for it I like the idea but time is a thing at the moment because My A.R.B Chess has been published a few times and I am busy Correcting People because they don't know exactly how to play it! it looks Simple Sad but like all Simple things there is more to it than how it looks!
I have been asked to put forward a "How to play the System" which is something I have been considering for a while by putting Various Explanation articles all into one article and maybe even a book! at the moment I am waiting to get My Free copy of a Famous Chess Periodical because they are publishing My System and offered the Free copy to me,then I can have a good look at it and hopefully send out some kind of appraisal for the Version as being Correct ?
So for the moment Donald I will have to put that on hold! plus as I said to you before I have invented a Fantastic Board game Myself which I believe will be made into a New World Wide played game in Tournaments Etc. like Chess,Go,Checkers ,and I would like you to do the Graphics for it,We can work together on Both Games My A.I for your Graphics Smile I will let you know when I have more time for both.

Anthony.
Find all posts by this user
Like Post
06-13-2015, 01:39 PM
Post: #5
 (Print Post)
RE: Quarto! Board Game in QB64
Donald,

You are very welcome for the response.

Yes, you could of used Photoshop to create the artwork, but where is the fun in that? I have always loved creating graphics through code instead of drawing them in a paint program. It is a skill that is rarely touched upon, but when it is, it really makes a huge difference. When you create "graphics" with code it is called, "Procedural Generation" and you are using logic to create art, which causes you to use both sides of your brain. That is one of the things that I love about computers is the fact that it will cause you to use both sides of your brain, usually at the same time.

There is nothing that I can think of, or find, that can't be created with procedural generation. If you do a Google Image Search on the term, "Procedural Generation", you will find a ton of cool stuff that has been created with it.

This is a topic that I would love to see more of on this forum, and the other forums I plan to create in the future. Matter of fact, my animated clocks, LED screens, fractal screen savers, your games, Dave's games (TheLastTrueGreatAmerican), and other graphical demos shared on this forum are all projects that where created with procedural generation. So far on this forum, and the one over at QB64.net, projects created with pre-rendered images are scarce. If I was to give an estimate of ration from procedural generation projects versus projects with pre-rendered content, I would say a 99.5%/0.5% (or 99.5% to 0.5%) ratio.

So please do not stop creating graphics through code just because the rest of the world decided to create graphics through other means, be proud of your accomplishments, and feel the joy when you create them. You see, these are the main reasons why I always get excited to projects with not-so-realistic graphics, or ancient looking graphics, that where created through code. Realistic graphics do not excite me as much as simple, procedurally generated graphics do. The only time I care for realistic graphics are when I play games on console machines like the XBOX or PlayStation, and only when I am playing military war games, or horror games, where the realism really puts me into the action.

One note worth mentioning, you may notice that I love to create artwork through code, and you will really see this when I bring my new home page for the http://www.TheJoyfulProgrammer.com online sometime hopefully soon. I extensively use the HTML5 Canvas to create a lot of the graphics, that way they can be updated without worrying about having multiple pre-rendered images to do the same job. So far, I love to use the HTML5 Canvas element, as well as the gradients in CSS to create cool looking UI and backgrounds.

Speaking of the new home page I am working on for my main site, I have to say it will be very interesting, and there will be a lot of things on it to keep people busy for a little while, if their interested. I am going all out and will be using (modified) technologies that will turn my home page into a web application. For example, there will be a bar at the bottom of the browser screen (not the web page itself) that contains five buttons that will give users a lot to look at and things to do. The first button will bring up a list of the various video playlists found on my YouTube channel. Users will be able to watch all my videos right on the main page. The second button shows the recent posts made on The Joyful Programmer Community page on FaceBook. The third button allows a user to read the latest tweets post on The Joyful Programmer's Twitter account. The fourth button will allow the user to view the latest posts made on The Joyful Programmer's Google+ account. And finally, the fifth button shows a list of various boards on my Pinterest account. You can click on one of the buttons on the list, and the latest posts for that board will show up on the right-hand side of the list.

Another feature I will be adding to the home page will be for my "About Me" content. What makes this one so interesting is that the information about me will be in a PDF file that will be shown on screen, possibly on a new tab to help keep the memory usage for that page down, inside a HTML5 element. I will be setting this up as a flip book. I will be using the PDF.js project shared by Mozilla labs (FireFox) that renders PDF's to an HTML5 canvas. The technology is actually embeded in FireFox now, so work on the JavaScript project looks to have slowed. This project will allow me to render the pages in a PDF to a Canvas element, which I can then take and create my own animations and manipulations. That is just the basics of what I am working on for the home page.

Now enough about the graphics as I would like to mention that I love how you came up with a system that is not only compact, but is more efficient in the game play. I never thought about using strings for compacting and simplifying the logic manipulation, as I have always used binary bits for this. This spans from my work in assembly language of course.

Talking about getting carried away, I always get carried away when I tried to talk about what is on my mind. I guess you can tell I love to write (type).

Any-who, please keep your projects coming as they are enjoyed by many.


Walter Whitman
The Joyful Programmer
a.k.a: Waltersmind
Please visit my website at: http://www.TheJoyfulProgrammer.com
Please subscribe to my YouTube Channel at: https://www.youtube.com/channel/UCkkN3_B...c9a1MoUr1A
Please visit me at FaceBook: https://www.facebook.com/thejoyfulprogrammer
Please follow me at Twitter: https://twitter.com/TheJoyfulProg
Please follow me at Google+: https://plus.google.com/+Thejoyfulprogrammer/posts
Please Visit me on Pinterest: https://www.pinterest.com/waltersmind/
Please Visit me on LinkedIn: https://www.linkedin.com/pub/walter-whitman/18/8b4/832

My goal is to bring joy, excitement, fun and education to all computer programming hobbyists, tinkerers, and amateurs. I also enjoy helping and working with those who aspire at becoming masters of their craft.
Find all posts by this user
Like Post
06-14-2015, 06:24 PM
Post: #6
 (Print Post)
RE: Quarto! Board Game in QB64
Walter,
Thank you for the information on Procedural Generation, I did research on Google and found it interesting, though most of the information I found was mostly directing to video games and a lot of the example code was in C++. However, video games is not that much different than board games and I do understand a little C++. I don't know C++ well enough to write any games in it, but enough to be to follow the code. I tried teaching my self C++ a long time through books I purchased, But was lost with the examples they used, I could not relate to them as many to me were note real life examples.

I did take a look at your demos of your clocks and other graphics programs, but I was completely lost. I still don't know trig functions yet, but in time with help from Google, Youtube and other members, I know I can learn. I got a lot of help from a QB64 forum member menn. He drew fancy trig demos using DRAW statement. I had now idea you could do that. I didn't know QB64 added TA and P to the DRAW statement. At the same time Steve at QB64 forum was using trig functions and teaching how they worked, but I'm still behind on that, I know I will learn it. I wish I hadn't taken 20 years off from programming, things I would already know how to do by now.

Anthony,
I am interested in helping you with the graphics on your game, but my abilities are very limited. I'm fairly good at abstract strategy games that don't have too much detail in the board and pieces. When you asked me to help you with your chess, those pieces have too much detail and would be better to find some nice looking sprites and load them into the game. But that's still an area that I haven't developed yet. I am certainly no good at games like Risk that has way too much detail in the board. But, when your ready to start working on it, let me know, I'll see what I can do.

Donald
Find all posts by this user
Like Post
06-15-2015, 01:36 AM
Post: #7
 (Print Post)
RE: Quarto! Board Game in QB64
Donald,

You are very welcomed.

I don't know much about c++ either at this time, though I have wrote some simple demos in it earlier this week. I was studying up on it and I was using the MinGW-64Bit toolchain that I mention in my *.PDF tutorial on how to update QB64 32Bit to 64Bit. I was testing out the "CodeBlocks" application that allows you to develop c++ applications. I had to learn how to set it up to use it, but some of it is a pain. I think I may go back to my favorite text editor and code it there, and then use a *.BAT (batch) file to compile and link my projects. I was trying to find a little bit of stuff that I could use when I create "The C++ Edition" forum which will be about programming in c++.

What parts of my demos caused you to be lost? I really didn't use any equations to draw my demos, I used code like, "CIRCLE, PAINT, _MAPTRIANGLE, etc..." to draw every part in each demo, just like what you do when you use "DRAW, CIRCLE, etc..." in your games. That is what I was originally referring to.

Donald, I think you are not giving yourself enough credit when it comes to doing game graphics. The artwork you made on all your other games have been just as complex, if not more then chess pieces. Remember, it is all about abstraction, not realism. You can make all the chess pieces with CIRCLE, LINE()-(),BF, and PAINT, and still make them look good. So please don't cut yourself short on your abilities. With what I have seen in your games, you could do a great job at it.

One last thing and as a side note, I finally came up with a tag line for "The Joyful Programmer". It is: "A Voice for the Hobbyist Programmers and Tinkerers." What do you think of it?


Walter Whitman
The Joyful Programmer
a.k.a: Waltersmind
Please visit my website at: http://www.TheJoyfulProgrammer.com
Please subscribe to my YouTube Channel at: https://www.youtube.com/channel/UCkkN3_B...c9a1MoUr1A
Please visit me at FaceBook: https://www.facebook.com/thejoyfulprogrammer
Please follow me at Twitter: https://twitter.com/TheJoyfulProg
Please follow me at Google+: https://plus.google.com/+Thejoyfulprogrammer/posts
Please Visit me on Pinterest: https://www.pinterest.com/waltersmind/
Please Visit me on LinkedIn: https://www.linkedin.com/pub/walter-whitman/18/8b4/832

My goal is to bring joy, excitement, fun and education to all computer programming hobbyists, tinkerers, and amateurs. I also enjoy helping and working with those who aspire at becoming masters of their craft.
Find all posts by this user
Like Post



Forum Jump:


User(s) browsing this thread: 1 Guest(s)




QB64 Member Project - Amazon
QB64 Member Project - Color Triangles
QB64 Member Project - Pivot version two
QB64 Member Project - Swirl
QB64 Member Project - Martin Fractals version three
QB64 Member Project - Kobolts Monopoly
QB64 Member Project - Rotating Background
QB64 Member Project - Touche
QB64 Member Project - Connect Four
QB64 Member Project - Bowditch curve
QB64 Member Project - Spiro Roses
QB64 Member Project - Blokus
QB64 Member Project - Isolation
QB64 Member Project - Splatter
QB64 Member Project - Othello
QB64 Member Project - Line Thickness
QB64 Member Project - Rubix's Magic
QB64 Member Project - Foursight
QB64 Member Project - Point Blank
QB64 Member Project - Dakapo
QB64 Member Project - Martin Fractals version one
QB64 Member Project - Kings Valley verion one
QB64 Member Project - Qubic
QB64 Member Project - Overboard
QB64 Member Project - Kings Vallery version two
QB64 Member Project - ARB Checkers
QB64 Member Project - MAPTRIANGLE
QB64 Member Project - Domain
QB64 Member Project - Basic Dithering
QB64 Member Project - Inside Moves
QB64 Member Project - Kings Court
QB64 Member Project - Martin Fractals version four
QB64 Member Project - Quarto
QB64 Member Project - Full Color LED Sign
QB64 Member Project - Score 4
QB64 Member Project - Color Rotating Text
QB64 Member Project - RGB Color Wheel
QB64 Member Project - Input
QB64 Member Project - Red Scrolling LED Sign
QB64 Member Project - Dreamy Clock
QB64 Member Project - Algeria Weather
QB64 Member Project - 9 Board
QB64 Member Project - Pivet version one
QB64 Member Project - Exit
QB64 Member Project - Spinning Color Wheel
QB64 Member Project - STxAxTIC 3D World
QB64 Member Project - Sabotage
QB64 Member Project - Martin Fractals version two
QB64 Member Project - OpenGL Triangles