Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
See pages that link to and include this page.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.
What the community thinks:
Comment if you downloaded the game and what you think of it(feedback). Also read the read me before playing!
To me, your program is a bit unpolished. It crashes fairly easily and doesn't feature a detection system (like specified in the readme), which defeats the whole purpose of the program basically. In the readme it's also stated that you may not press Enter while the board is being setup, but you should rather fix that problem instead of notifying the user of there being one.
What do you mean it crashes? In the read me I said there was no detection system.
As I said, it is in fact stated in the readme, but why would I want a connect 4 game on my calculator if it doesn't do more than draw O's and zeroes on a screen? You could do the same as your program does using pen and paper.
The error that occured after executing your program for the first time was a domain error pointing to an Output(.
You don't have to be so harsh. Simply state the problem with the program and any recommendations you have to fix it. You may want to play Connect Four with a friend. In my Connect Four program, you can select what kind of player each is (AI or Human), but human vs. human is useful.
I wasn't trying to be harsh, sorry if it seemed like that. I was just pointing out that the program is a quite rough around the edges and that a little polishing couldn't hurt.
So if I were to recommend anything, it would probably be trying to write a detection for when somebody wins, and also overcoming that a player can put more coins in a column than possible.
You and some other people could help me make it a better program if you want. Then, I can release a better version. I'll post the code tomorrow because I'm using my schools computer.
1. We already have the code. Your program is up for download, so we can look into the code, like I did.
2. Why doesn't it say anywhere that the 2nd button has a special function? It's stated in the code (getKey value of 21).
3. After I posted my initial comment on the 10th of November, I actually rewrote your whole program from scratch :). I tried to keep your design as much as I could, except I made sure not a single crash can occur (except for breaks of course). And since I had too much time on my hands, I designed and implemented a detection for winning. All in all it's 438 bytes lighter than your program. I can upload it if you want me to, I won't take any credit for the idea and the design obviously.
Yes, please post the code.The 2nd key doesn't have a special function(besides shutting down the game). It's just that I only know one way to use getKey. If anyone can help me learn another way to use get key, please post!
It's up to you how I post the code then. I'd rather upload it (create a new page) than just post it here in a comment though, since you can easily put it on your calc that way. I'm going to put it on my computer in a minute, so just give me a heads up if it's ok to upload it as a seperate program. Obviously I'll give credit where credit is due, link this page etc…
Do whatever you have/want to do to post the code.:)
Here it is!
Thanks! By the way how do i make on of those gif images that show the program.
There are several ways to do it nowadays. I use Wabbitemu to record the screen of the calculator being emulated.
If you have a rom file for your calculator, you can also use the jsTIfied calculator emulator from Cemetech.
I would recommend using Wabbitemu for making release-quality GIFs. jsTIfied sometimes makes buggy images.
ok thanks.