News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Challenge!!

Started by avcaballero, October 23, 2014, 10:09:04 PM

Previous topic - Next topic

avcaballero

Challenge!!

What's up there? Well, after talking about politics, religion, etc, what about a contest programming? :eusa_dance: I invite you to make a simple win game: Win-mines alike. We would have one month to finishing. It is Oct-23-2014, 13:08 in Madrid, so it would finishing at Nov-23-2014, 13:08. Because we are in an asm forum, it should be developed in masm32 assembler. Any contest have to attach their project in a zip without any exe file, in such a way that it should be compiled only with any masm32 tool, lib, etc. Hence it is not allowed external tools, libraries, etc to compile it.

Is it available any survey tool? Maybe we could mark the next rules to be voted:

* Stability
* Size (less size, bigger note)
* Features
* Look
* Improvements

To be fair, I can sure you that I don't even start it, in fact I only can take weekends for it. Hmmm, damn! maybe I'm not able to make even the first window :eusa_snooty:

Gretings,
alfonso

Zen

AVCABALLERO, 
This is a terrific idea,...except, of course,...that I'd be the All-Time Loser,...
A couple of weeks ago, I had a similar idea,...a psychic debugging contest. And, to make it REALLY challenging,...the contestants would get absolutely NO data on the problem app. No source code,...no description of the problem,...no cheating by e-mailing Raymond Chen,...NOTHING,...
...But,...it didn't seem like it would be all that much fun,...

avcaballero

You have always good ideas, zen :biggrin:. Maybe the contest would be more interesting if the award were a full nerd equipment. :greenclp:



My zipped images never shows a preview  :icon_confused:

avcaballero

Hello, how are you going? Here is my progress, a bit slow. Anyone interested? If it's me the only contestant, it wouldn't be game, would it? :P


jj2007

Quote from: dedndave on December 06, 2012, 01:33:22 PMi may upgrade the program, later   :P

Later is now, Dave ;)

avcaballero

That's really great, Dave :t. Good looking. I miss a feature: when you click in a blank cell, it should reveal all of its neighbour blank cells. What about the possibility of select three amounts of mines?.

:icon_eek: Hmmmm, I don't think I'm able of complete all these features in a month  :lol:

Regards

dedndave

i never did add the "game logic" to that program
it's just a graphics example - lol
the right-click reveal logic is a little odd

it also needs edit boxes to set the cell width and height

avcaballero

Hello, this is my work progress, it is nearly finished. Am I the only player? ::) In that case I won't play neither :badgrin:

Regards.

dedndave

I would play if I had more time  :t

Siekmanski

No spare time here either.  :(
Creative coders use backward thinking techniques as a strategy.

Gunther

Excuse me, but at the moment is my time very limited. I've more time between the years.

Gunther
You have to know the facts before you can distort them.

avcaballero

Hello. There are a few things more to do, but this is already a playable version.

Features:
* Button face is a double icon button and indicates the state of the game/gamer:
  - Glad face. Everything is ok.
  - Fear face. When you click down on a button it appears: the mines seeker state.
  - Dead face. It appears when you click up on a button mine: game is over and you loose.
  - Glass face. When you have completed the game: you win.
  Every time you click on the button face, the game is reseted. Nothing really happens until you click up on any button.
 
* When you click on a blank cell, all of its neighbours blank cells are revealed, and also all the cells with info in the border. It is a recursive algorithm similar to the paint regions one that I discussed some years ago here.

* There're two accelerator keys:
  - F2. Restart the game at any time it would be pressed.
  - Esc. Quit the game.
 
Rules:
You have to find all the mines on a square table of cells. For that, many cells info you on how many cells round it has a mine. Blank cells are irrelevant. Of course, if you click on a cell with a mine inside, you lose.

When you win or lose, you won't be able to keep on playing until you reset the game clicking on the glass face button or pressing the F2 key.

Things to point up in this version:
* I added a banner in the "about" box to give it a bit of colour.
* Now cells are initialized with a dark grey shadow. When a cell is revealed, it became flat and with a clearer colour.

Regards

avcaballero

Hello. In this version you can choose the game level. In the beginner version (by default) everything goes right, but in medium and advanced level, goes a bit crazy. I have used DeleteObject for deleting buttons and creating them again, though i have read that it is not valid for buttons?? Don't know. I have to chase it... when i have time. If anyone has an idea, would be appreciated.

Regards

avcaballero

Things to point up in this version:
* You can change succesfully the game level.
* There are two operative counters.
* The first cell you click on won't ever be a mine, and set the time counter on.
* The player who achieve the best time resolution level will be informed. Reseated in each session.
* You can select "Sound on" or "Sound off", but there's no sound for the moment.

Things to improve:
* I wanted to do a feedback effect in the about box, not a simple bur.
* Buttons show icons. We can show text instead and maybe we can gain some kb.
* Adding a link to my page to the about box.
* Play a wav explosion when a mine is clicked.

Regards