10.03.2019 - Round 1 results of our "A Love Letter For FreeBASIC" game dev competition have been published. Please be sure to check the results thread: http://games.freebasic.net/forum/index.php?topic=629.0. Don't forget that the competition is continuing with a round 2, lasting till 29th of April, 300 USD first prize. Stay tuned!

Author Topic: Connect 4 FB released!  (Read 5875 times)

WisdomDude

  • Amoeba
  • *
  • Posts: 1
    • View Profile
Connect 4 FB released!
« on: May 01, 2012, 07:59:21 AM »
A little history:
The original game was completed in QB with DSock and DirectQB library back in 2002. It is now ported into FreeBASIC with Winsock! Source code is released for learning the networking code!
Sure, I could have added stuff like AI and offline mode, but Marcade and I originally designed this for learning the networking code back in 2002. With that being mentioned, the FreeBASIC version
was also based on that principle.

http://www.wisdomdude.com/Connect4FBInstaller.exe

It is designed to be a two-player only game, but that's to keep it simple for learning
the networking and gaming code. To play against someone over the internet, one
of the players will need to give their IP address to the other, and the other will
have to type in that IP address and hit ENTER. Once connection has been made,
you're ready to go. :)

If you like to play two instances of Connect 4 FB on the same machine, do this:

Run two instances of Connect 4 FB.
Initiate the first one with IP address: 127.0.0.1
Initiate the second one with IP address: 127.0.0.1
With the second one open, initiate connection by hitting ENTER on it.

If you're still seeing "connecting...", this might be because you might have initiated the first instance.
Again, be sure to initiate on the second one. Once you're connected, enter nicknames on both of
them and game engine will initiate on both of them.

Once the game engine starts...

You can use the mouse to move the hand and click to drop the pieces.
You can also use the keyboard. CTRL or ALT will drop the piece. Left/Right arrow keys will move the hand.
As for the gameplay, remember Tic-Tac-Toe? Yeah, pretty much the same concept, except you're dealing with a 7 x 6 grid and you have to get 4 in a row.

Connect 4 FB also has a chat feature. Type anything at the bottom, and hit ENTER to send. You can use Up/Down arrow keys to scroll through the chat history.

That is all.

Lachie Dazdarian

  • Double dipper
  • Administrator
  • Forum Sage
  • *****
  • Posts: 1308
    • Yahoo Instant Messenger - lachie13
    • View Profile
    • The Maker Of Stuff
    • Email
Re: Connect 4 FB released!
« Reply #1 on: May 01, 2012, 08:03:16 AM »
Thanks for this port, WisdomDude! It's been a pleasure to test it with you. Nice interface and chat option.

I do hope you will consider making a fully offline version and perhaps one with an computer opponent.

Also, I would love to hear any news regarding development and release of final version of Cyberchick in FB?.In what stage is that project?
"Things like Basic and Free Basic provide much-needed therapy and a return to sanity and a correct appreciation of people. The arrogant folk really hate a word like 'Basic' - fine, and good riddance." ~ pragmatist