Computer Science Canada Programming C, C++, Java, PHP, Ruby, Turing, VB   Username:   Password: Wiki   Blog   Search   Turing   Chat Room  Members
[Puzzles] Puzzle Launcher Added - Kevin Folz
Author Message
Cervantes

Posted: Mon Mar 22, 2004 8:44 pm   Post subject: [Puzzles] Puzzle Launcher Added - Kevin Folz

CERVANTES' PUZZLES!

You can now download Kevin's (the_short1's) launcher here. It contains all the puzzles and you can play them again and again without having to rerun the program!!

So far I've made four puzzles.

~~>Green Screen - my first puzzle program. Inspired by the "Green Screen" in MOTAS (check out Paul's thread about MOTAS here.

~~>Number Shift - This is the puzzle where there is one empty spot in your grid, and you have to move the squares around, using that empty square, to get the numbers in order.

~~>N Queens - This is the game where you take 8 queens and try to place them on a chess board so that they are all safe from each other (no two are in the same row / column / diagonal).

~~> Odd Even Path - In this puzzle there is a large grid; each grid square has a value from 1 to 10 attached to it. You pick a spot to start, and move into squares that are adjacent to you. However, if you started on an odd number, you can only go to odd numbers after that. If you started on even, you can only go to even numbers. When you move into a square, your score is increased by the value of that square. try to get the highest score possible! The HIGH SCORE for OE path as of April 11, is 400 by Catalyst. Congrats!

Cheers

OE Path.t
Description:
 OE Path - Made March 28, 2004

Filename:  OE Path.t
Filesize:  2.12 KB

N Queens.t
Description:
 N Queens - Made March 27, 2004

Filename:  N Queens.t
Filesize:  2.25 KB

Number Shift Puzzle.t
Description:
 Number Shift - Made March 26, 2004

Filename:  Number Shift Puzzle.t
Filesize:  2.56 KB

GREEN SCREEN.T
Description:
 Green Screen - Made March 21, 2004

Filename:  GREEN SCREEN.T
Filesize:  1.91 KB

jonos

Posted: Mon Mar 22, 2004 8:49 pm   Post subject: (No subject)

cool game!!! i can't seem to win though...

i haven't won so i don't really know how it takes too long to check if you've won... but it looks fine to me.
Delos

Posted: Mon Mar 22, 2004 8:59 pm   Post subject: (No subject)

Nice...some mouse problems...mainly due to those accursed delays not being the same on all comps.

Easily fixed though!

In your main loop (the one w/ Moues.Where), take out your delay.
You can always add a variable refernce to it so that it can be changed at the top...

Otherwise works real well...checking can be done like this:
 code: var done : boolean := true % Assume true until otherwise proven. for i : 1..upper(grid) for j : 1..upper(grid, 2) % Assuming a 2-dim grid system. if grid(i,j).switch = false then done := false exit end if end for if not done then exit end if % Exit as SOON as a notdone tile is found. % will save moutnains of CPU time. end for if done then put "w00t" end if % This happens if and only if the board is DONE! (hehe, biconditional statement). done := true % Reset for the next run. % Of course, this assumes that each tile has some sort of % 'switch' boolean reference in it...but that's up to you.

BTW, the least I can get it to is 2 black tiles. Seeing as the MOTAS one ended w/ 4 black tiles, I'd say that 2 is a safe bet to end it at...seeing as a total conversion is practically (perhaps mathamatically) impossible.
AsianSensation

Posted: Mon Mar 22, 2004 9:14 pm   Post subject: (No subject)

+bits, though I should give too much since this did keep me from doing my compsci homework for 10 minuts....

anyways, +15 bits

oh wait, you are mod....oh well, still plus bits.
Cervantes

Posted: Mon Mar 22, 2004 9:21 pm   Post subject: (No subject)

I think that that makes it worse.. (about the Time.Delay placement)

if you have it delay EVERY loop, then there is a chance (smaller chance for smaller delay) that you will click while the delay is going, and your click will not be registered. However, my way, every click will be registered. Also, having the delay inside the if statement of btn > 0 prevents the click from being registered a ton of times. It is, still, however, somewhat buggy at times. i know no way of fixing it.

oh and I'm not sure if you can actually win in a 6x6 grid. Haven't tried too hard myself
AsianSensation

Posted: Mon Mar 22, 2004 9:41 pm   Post subject: (No subject)

you can always use Mouse.ButtonWait...
Cervantes

Posted: Mon Mar 22, 2004 10:23 pm   Post subject: (No subject)

interestingly enough I've never used Mouse.ButtonWait before. Works beautifully though!

oh also the furthest I've been able to get it down to on 6x6 is 2.

Above code is altered.
programer007

Posted: Tue Mar 23, 2004 8:11 am   Post subject: (No subject)

nnice stuff..... i got to one black square on the rectangle shaped one.....
good program.

Cervantes

Posted: Tue Mar 23, 2004 3:48 pm   Post subject: (No subject)

nice. getting it down to one is pretty tricky.

I update the first post. Its now in attachement for for easier scrolling. I also added on a feature that allows you to have blank spaces in the puzzle. Finally, I changed it so that you win when you only have 1 black square left.

Enjoy.
Cervantes

Posted: Fri Mar 26, 2004 9:10 pm   Post subject: (No subject)

Added a new puzzle I call 'Number Shift'. Check first post.
the_short1

Posted: Fri Mar 26, 2004 10:45 pm   Post subject: (No subject)

WOW... i won at both...!!! COOL!!! second ting,.l.. Cervants.. I LOVE deese.... keep them comming.... cant wait for the next one....
***try to create a super hard mode lets say press h to enter hard mode (at start of game) so its longer and more difficult... dont get me wrong... urs is difficult... its just i have the exact method of doign those... (ive done those b4) the number shift...

that gree screen is da bomb/// + 10 BITS!!! but ur a mod..!!
here is my win scrneen in case u dumbt me

i won.jpg
Description:
 number shift win in case u doubt thy worthy one kevin da short
Filesize:  88.58 KB
Viewed:  7982 Time(s)

Cervantes

Posted: Sat Mar 27, 2004 9:28 am   Post subject: (No subject)

glad you liked them And the number shift is not that difficult to beat, just takes some practice. Thing is once you beat it on 3x3 or 4x4, you can basically do any of them, just takes longer and is slightly harder when you get to the bottom.
I'll gladly make more, I just need the idea for another puzzle
anyone got any suggestions?
the_short1

Posted: Sat Mar 27, 2004 11:44 am   Post subject: (No subject)

heres an idea...... im the ideas man lately.... cool stuf...

basically make the green screen program having all those boxes.. except having to order them matching colors on all sides....
here is a pic ture represnetation.... also if you download the .zip file... my idea is that game, but colors to match.. not numbers / letters

also have game modes for 3x3, 4x4 and ultra hard 5x5
cuz this game idea would be hard at a highamount of boxes....

also being able to clcik + drag them mite be nicer because of the supreme dificulty...

-kevin

colormatch.jpg
Description:
 picture of my idea
Filesize:  20.3 KB
Viewed:  7970 Time(s)

Tetravex.zip
Description:
 make a puzzle similiar to this game but using colors to match... PS: i got this from Best Of Entertainment Pack, If u want the whole set of games PM me

Filename:  Tetravex.zip
Filesize:  21.52 KB

Cervantes

Posted: Sat Mar 27, 2004 12:00 pm   Post subject: (No subject)

the zip ain't working. Need the winutil.DLL file it says.

cool idea I'll get working on that
There are two ways of doing this: click and drag the boxes into place, or have them already in place and you spin them. Let me know which you think would be better, I'm going to start building the basis of the game.

EDIT: or a combination of both
Cervantes

Posted: Sat Mar 27, 2004 4:06 pm   Post subject: (No subject)

interesting. That's actually rather difficult. I thought up another puzzle to make though in the mean time while i think about yours. Its based on the game where you have a chess / checkers board and 8 pawns / checkers pieces and you have to arrange them so that no 2 are on the same row, column, or diagonal. The hard part is the checking for a victory. Lots of for statements goin' on right now
 Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 Year Oldest FirstNewest First

Page 1 of 3  [ 42 Posts ]
Goto page 1, 2, 3  Next
 Jump to:  Select a forum  CompSci.ca ------------ - Network News - General Discussion     General Forums   -----------------   - Hello World   - Featured Poll   - Contests     Contest Forums   -----------------   - DWITE   - [FP] Contest 2006/2008   - [FP] 2005/2006 Archive   - [FP] 2004/2005 Archive   - Off Topic     Lounges   ---------   - User Lounge   - VIP Lounge     Programming -------------- - General Programming     General Programming Forums   --------------------------------   - Functional Programming   - Logical Programming   - C     C   --   - C Help   - C Tutorials   - C Submissions   - C++     C++   ----   - C++ Help   - C++ Tutorials   - C++ Submissions   - Java     Java   -----   - Java Help   - Java Tutorials   - Java Submissions   - Ruby     Ruby   -----   - Ruby Help   - Ruby Tutorials   - Ruby Submissions   - Turing     Turing   --------   - Turing Help   - Turing Tutorials   - Turing Submissions   - PHP     PHP   ----   - PHP Help   - PHP Tutorials   - PHP Submissions   - Python     Python   --------   - Python Help   - Python Tutorials   - Python Submissions   - Visual Basic and Other Basics     VB   ---   - Visual Basic Help   - Visual Basic Tutorials   - Visual Basic Submissions     Education ----------- - Student Life   Graphics and Design ----------------------- - Web Design     Web Design Forums   ---------------------   - (X)HTML Help   - (X)HTML Tutorials   - Flash MX Help   - Flash MX Tutorials   - Graphics     Graphics Forums   ------------------   - Photoshop Tutorials   - The Showroom   - 2D Graphics   - 3D Graphics     Teams ------ - dTeam Public

 Style: Appalachia blueSilver eMJay subAppalachia subBlue subCanvas subEmjay subGrey subSilver subVereor Search: