The MASM Forum

Miscellaneous => Miscellaneous Projects => Topic started by: avcaballero on October 23, 2014, 10:09:04 PM

Title: Challenge!!
Post by: avcaballero on October 23, 2014, 10:09:04 PM
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
Title: Re: Challenge!!
Post by: Zen on October 24, 2014, 07:21:57 AM
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,...
Title: Re: Challenge!!
Post by: avcaballero on October 24, 2014, 05:53:02 PM
You have always good ideas, zen :biggrin:. Maybe the contest would be more interesting if the award were a full nerd equipment. :greenclp:

(http://thumbs.dreamstime.com/x/hombre-vestido-como-empoll%C3%B3n-2044371.jpg)

My zipped images never shows a preview  :icon_confused:
Title: Re: Challenge!!
Post by: avcaballero on October 27, 2014, 09:49:40 PM
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
Title: Re: Challenge!!
Post by: dedndave on October 28, 2014, 07:44:07 AM
(http://img40.imageshack.us/img40/4199/sweep03.png)

http://masm32.com/board/index.php?topic=932.msg9410#msg9410 (http://masm32.com/board/index.php?topic=932.msg9410#msg9410)
Title: Re: Challenge!!
Post by: jj2007 on October 28, 2014, 03:57:46 PM
Quote from: dedndave on December 06, 2012, 01:33:22 PMi may upgrade the program, later   :P

Later is now, Dave ;)
Title: Re: Challenge!!
Post by: avcaballero on October 28, 2014, 07:25:31 PM
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
Title: Re: Challenge!!
Post by: dedndave on October 28, 2014, 09:53:07 PM
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
Title: Re: Challenge!!
Post by: avcaballero on November 12, 2014, 11:44:14 PM
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.
Title: Re: Challenge!!
Post by: dedndave on November 13, 2014, 12:19:19 AM
I would play if I had more time  :t
Title: Re: Challenge!!
Post by: Siekmanski on November 13, 2014, 08:17:07 AM
No spare time here either.  :(
Title: Re: Challenge!!
Post by: Gunther on November 14, 2014, 04:17:44 AM
Excuse me, but at the moment is my time very limited. I've more time between the years.

Gunther
Title: Re: Challenge!!
Post by: avcaballero on November 21, 2014, 11:49:36 PM
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 (http://www.abreojosensamblador.net/Productos/AOE/html/Pags_en/Chap26.html#Algoritmo).

* 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
Title: Re: Challenge!!
Post by: avcaballero on November 24, 2014, 08:06:44 PM
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
Title: Re: Challenge!!
Post by: avcaballero on December 15, 2014, 07:50:01 PM
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
Title: Re: Challenge!!
Post by: Gunther on December 15, 2014, 08:19:48 PM
Nice, Alfonso.  :t

Gunther
Title: Re: Challenge!!
Post by: Siekmanski on December 16, 2014, 12:07:15 AM
Cool game and a really nice blur effect  :t
Title: Re: Challenge!!
Post by: FORTRANS on December 16, 2014, 12:53:06 AM
Hi,

   Everything seems to work as expected with Windows 2000.

Regards,

Steve N.
Title: Re: Challenge!!
Post by: avcaballero on January 03, 2015, 04:22:02 AM
Hello, happy new year.

Things to point up in this version:
* Changed the simple blur effect by a feedback effect in the about box, more colorful, I think.
* Added a hyperlink to my web page in the about box.
* It plays a wav explosion when a mine is clicked and the sound is turned on in the menu.
* Now the window holds on in the same top left corner when the level game is changed.

Things to improve:
* Hhhhmmmm, maybe there are any, but I won't do anything more here. Therefore this could be considered the latest one :icon_rolleyes:

Regards
Title: Re: Challenge!!
Post by: Gunther on January 03, 2015, 04:51:27 AM
Hi Alfonso,

Quote from: avcaballero on January 03, 2015, 04:22:02 AM
Things to improve:
* Hhhhmmmm, maybe there are any, but I won't do anything more here. Therefore this could be considered the latest one :icon_rolleyes:

works fine under Win 7-64. Do you have plans to include it in your graphics tutorial? I think that would be a good idea.

Gunther
Title: Re: Challenge!!
Post by: avcaballero on January 03, 2015, 05:38:46 AM
I'm thinking on making a game tuto. When I have time I'll try a pacman and a stardust. Also, I'd like to rewrite my site on full php, not just html. What I don't know is where I will get the time from  :icon_rolleyes:

Regards
Title: Re: Challenge!!
Post by: Gunther on January 03, 2015, 05:46:23 AM
Alfonso,

Quote from: avcaballero on January 03, 2015, 05:38:46 AM
I'm thinking on making a game tuto. When I have time I'll try a pacman and a stardust. Also, I'd like to rewrite my site on full php, not just html. What I don't know is where I will get the time from  :icon_rolleyes:

a game tutorial seems to be a good idea. You'll find a lot of interested parties and I hope you'll find the time to do it. Time is a very rare resource for all of us.

Gunther