Jump to content




BingoCraft by theTANCO


3 replies to this topic

#1 RaiuPlays

  • Members
  • 22 posts

Posted 11 April 2015 - 08:09 PM

So, I've started working on a ton of different projects that I haven't finished yet, but this is the first one I have finished. It's bingo in ComputerCraft!

http://pastebin.com/9GMhR0tH

INSTALLING THE PROGRAM: At the end of a game, if you press the space bar, it will restart the game and there is a second file to do this. For this to work properly and set it up easily, I'd recommend typing "pastebin run uBCZM6h9" into the terminal to download the game files in the correct places with the correct names.

This game can be either 1 player playing against an AI, or 2 players playing against each other, which can be selected by using the up or down arrow keys.
Spoiler

As one would expect, each board consists of five columns and five rows of random numbers. A random number is called above the boards. If you have that number you can click on it on your board to mark it, or you can click on the free space in the middle at any point during the game. If you do not have the number you need, click the pass button under your board.
Spoiler

At the end of a game you can see win/loss statistics for both 1 player mode and 2 player mode.
Spoiler

I hope you enjoy! I tested this multiple times to make sure everything works properly, but let me know if you find any bugs, or if you can think of any way this could be improved. :)

Edit: Probably should have made it clearer about how to install the program. So I fixed that.

Edit 2: Fixed a bug where you could pass your turn by clicking the free space after it had already been clicked.

Edited by theTANCO, 20 April 2015 - 06:50 AM.


#2 Creator

    Mad Dash Victor

  • Members
  • 2,168 posts
  • LocationYou will never find me, muhahahahahaha

Posted 11 April 2015 - 08:42 PM

This is real nice. Sadly the AI beat me. Only this time...

#3 ItsRodrick

  • Members
  • 72 posts
  • Location= gps.locate() or "unknown"

Posted 11 April 2015 - 10:47 PM

I won! But the game crashed.

Crash

Edit: Computer won (¬¬) and it crashed again:
Another Crash
And same error...

EDIT 2: Gotcha. I did pastebin get P4pinVwn bingo, so the program couldn't write into the dir bingo/stats, because bingo was already a program.
AFTER, I saw that there was a 'installer'.

Edited by RodrickLord, 11 April 2015 - 10:58 PM.


#4 ExplosiveFerrets

  • Members
  • 51 posts
  • LocationSweden

Posted 04 November 2015 - 03:02 PM

Fun! The AI got me...

Suggestions:
  • HTTP? That would be cool!
  • Maybe an menu.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users