Jump to content




Connect 4

game

  • You cannot reply to this topic
5 replies to this topic

#1 Negeator

  • Members
  • 16 posts
  • LocationThe Shivering Isles

Posted 02 May 2012 - 01:42 AM

Connect-4
-----------------------------

Long gone are the days of playing Connect 4 with sand and gravel. Now you can play Connect 4 on your computer in Minecraft!

There currently is only local play, but I plan to add wireless rednet support soon. This program also outputs to a monitor if you have one, and if your monitor is large enough it'll automatically center things the best it can. There also is a brief help page with the controls and how to play the game. The game is played with nice user-interface using the arrow keys and enter.

PICTURES:
Spoiler

CODE:
Spoiler

Be sure to post any bugs/errors if you find any!

#2 Zalerinian

  • New Members
  • 68 posts
  • LocationThe Internet

Posted 02 May 2012 - 02:20 AM

Very nice, Good job on making the game so nicely.

#3 Klausar

  • Members
  • 110 posts

Posted 25 June 2012 - 03:53 PM

I get an error when Player 1 wins,

:240: attempt to perform arithmetic __sub on nil and number

#4 Hunterfg09

  • New Members
  • 1 posts

Posted 30 March 2013 - 04:29 AM

I get this error.

bios:338: [string "Connect4"]:60: ")" expected

ive gone through the code i have written twice now and cannot find anything missing.

ive only gotten up to this line in the code

--returns a modifier to the x and y value given a direction. This is used to find the next point given a direction.
function addDir(x,y,direction)
if direction == 0 then
return x + 0,y + -1

so im not sure if anything after that fixes this problem

#5 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 30 March 2013 - 04:30 AM

color would be nice 0 and o hurts my eyes >_>

#6 Dlcruz129

    What's a Lua?

  • Members
  • 1,423 posts

Posted 31 March 2013 - 06:54 PM

View PostPixelToast, on 30 March 2013 - 04:30 AM, said:

color would be nice 0 and o hurts my eyes >_>

This is from May of last year. -_-





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users