Log In
Name:
Pass:
Online Members (0)
No members are currently online.
Current Interguild Time:
Thu Apr 17 2014 12:29 am
Member Chat Box  [click here to enlarge]
Recent Posts and Comments
ShareThis
« Blogs Index
« shos's Blog

So, our story starts in a castle far far away, named Hogwarts. Oh wait, that's the wrong site

Yeah so uh, let's try again . Our story starts in July, 2010, when the Interguild Olympics started. The Interguild Olympics (or in short, IO) is a big tournament consisting of a set of competitions here in the Interguild, which is held annually. This year, the IO is divided to weeks - every week, new competitions are announced.

In Week One, one of the competitions was the Pentathlon. In this competition, each participant had to make a level in a new game - meaning, for the first time.

Until then, our game Gravity Grid wasn't quite a popular game on the site. This game is really easy to understand and use, but since the only controls are three rotation options, it's not easy to make a decent level in it, not to mention an enjoyable one. So people started making levels for this game. And I was one of those - or at least, almost. I *wanted* to be, since it can also qualify for the Math Olympiad, one of the other competitions that week.

So, as a cool person , I thought to myself:
"Wait a mo. Why would *I* have to think out these levels? The amount of vailable positions is finite.. Why shouldn't I let the computer do that?"

So I opened my BlueJ, and...started thinking. :hmm
And then, voila! I knew just what to do . So I started writing! And writing...and writing...and writing......

And I finished. So I was all full of myself and stuff, so I wanted to check how it's doing. For those who know and might be interested, this:
Spoiler:
was the code that I wrote.

However, as you might have guessed, when I tested it on one of the main game levels, it failed miserably >_<

...

then I noticed how I messed up the grid's size - I thought it was 10x10 when it's really 9x9. Oh well. So I'll fix it, and it'll be ready.

~~~~~~
How to use:
Create a new class; start the method isWinable() and follow instructions, so that when you enter the grid's situation, an empty place is a 0, and any other color is a number, when same colors are same numbers of course.

This, however, will only tell you if it's possible
In order to make it tell you how to solve a level, just make sure it's possible, and then insert the grid after a rotation with -1 in moves left, again and again, following the True path till you're done

~~~~~~
Remember!
That the code up there is still wrong! And that I was too lazy to fix it so you do it!...

Wherever there's a number(which isn't a 0 or a 1), just decrease it by one, I think.



Good luck
[?] Karma: 0
User Comments (14)
« Forum Index < Puzzle Games Board

canadianstickdeath
[?] Karma: 0 | Quote - Link
Friday, July 9 2010, 4:04 pm EST

Age: 25
Karma: 318
Posts: 2852
Gender: Male
pm | email
Shos, -this- is why you use constants. Did you account for that tile that can't be removed?
shos
[?] Karma: 0 | Quote - Link
Friday, July 9 2010, 4:06 pm EST
~Jack of all trades~

Age: 21
Karma: 327
Posts: 7670
Gender: Male
Location: Israel
pm | email
canadianstickdeath said:
Shos, -this- is why you use constants.
yea at first i used constants, but then i thought, who cares, and changed them all hehe


canadianstickdeath
[?] Karma: 0 | Quote - Link
Friday, July 9 2010, 4:13 pm EST

Age: 25
Karma: 318
Posts: 2852
Gender: Male
pm | email
I edited that with another point. I don't know if you accounted for the tile that doesn't get removed from the grid.

That said, I'm not really sure what you were trying to accomplish with this program. Are you trying to make GG levels? Solve them? (Easily brute-forced with recursion). What?
shos
[?] Karma: 0 | Quote - Link
Friday, July 9 2010, 4:35 pm EST
~Jack of all trades~

Age: 21
Karma: 327
Posts: 7670
Gender: Male
Location: Israel
pm | email
Well, yes, I ignored these completely; I forgot about them. but it shouldn't be hard to do at all, just adding an OR at the isWinning, an if in the erase, and...well that's it, I think.

at first, I was trying to create a program such that I give it a situation and it gives me the fastest solution. it shouldn't be hard at all, but I have a test in the university next Thursday and I don't wanna start thinking. with a program like that, using Prolog you can pull out the starting position that requires the most moves to be beaten. that was my goal.


Livio
[?] Karma: 0 | Quote - Link
Friday, July 9 2010, 4:52 pm EST

Age: 21
Karma: 425
Posts: 9545
Gender: Male
Location: Arizona, USA
pm | email
lol it wasn't until I was eight paragraphs into this that I finally figured out what I was reading.

also it's great how in the "how to use" section, you pretend like we know exactly what you're talking about.
shos
[?] Karma: 0 | Quote - Link
Friday, July 9 2010, 6:49 pm EST
~Jack of all trades~

Age: 21
Karma: 327
Posts: 7670
Gender: Male
Location: Israel
pm | email
well of course, you can't use this if you don't know =\


Livio
[?] Karma: 0 | Quote - Link
Friday, July 9 2010, 7:13 pm EST

Age: 21
Karma: 425
Posts: 9545
Gender: Male
Location: Arizona, USA
pm | email
lol then why are you telling us about this?
shos
[?] Karma: 0 | Quote - Link
Friday, July 9 2010, 7:42 pm EST
~Jack of all trades~

Age: 21
Karma: 327
Posts: 7670
Gender: Male
Location: Israel
pm | email
if anyone who DOES understand wants to continue the work, you're welcome.


Harumbai
[?] Karma: +1 | Quote - Link
Thursday, July 15 2010, 12:24 am EST
[|]-Irrelevance-[|]

Age: 20
Karma: 258
Posts: 1701
Gender: Male
Location: New Zealand
pm | email
Mastering the game or Undermining the game?


Check out "Forever" on Harumbaitester.

shos
[?] Karma: 0 | Quote - Link
Tuesday, July 20 2010, 10:58 am EST
~Jack of all trades~

Age: 21
Karma: 327
Posts: 7670
Gender: Male
Location: Israel
pm | email
Harumbai said:
Mastering the game or Undermining the game?
lol, the goal was to make the level that will require you the most moves to win, so that is like, the master level, or something...


Silver
[?] Karma: 0 | Quote - Link
Wednesday, July 21 2010, 3:48 am EST

Age: 15
Karma: 115
Posts: 3546
Gender: Female
pm | email
Um. I don't get 95% of this guide and the other 5% is nonsensical/irrational/does not make any sense at all. All I get is that it's about Gravity Grid.

So, uh, what?
shos
[?] Karma: 0 | Quote - Link
Wednesday, July 21 2010, 4:00 am EST
~Jack of all trades~

Age: 21
Karma: 327
Posts: 7670
Gender: Male
Location: Israel
pm | email
lol, what did you not understand before the code?
i tried to write a program that solves levels in this game.


jellsprout
[?] Karma: 0 | Quote - Link
Wednesday, July 21 2010, 8:45 am EST
Lord of Sprout Tower

Karma: -2147482822
Posts: 6125
Gender: Male
pm | email
How fast is the program?


Spoiler:
shos
[?] Karma: 0 | Quote - Link
Wednesday, July 21 2010, 11:04 am EST
~Jack of all trades~

Age: 21
Karma: 327
Posts: 7670
Gender: Male
Location: Israel
pm | email
jellsprout said:
How fast is the program?
it's very fast and very easy to use, but i still haven't figured out how to make it give me the master level >_<



« Forum Index < Puzzle Games Board

In order to post in the forums, you must be logged into your account.
Click here to login.

© 2014 The Interguild | About & Links | Contact: livio@interguild.org
All games copyrighted to their respective owners.