Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

The 20 Line Challenge / Polychrome: take on your computer [DBpro]

Author
Message
Dr Schnitzengruber
12
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 20th Jul 2007 03:59
Here is a game I made. It a single-player YOU VS. COMPUTER puzzle game.



The object of the game is to be the first player to color in a certain amount of tiles on a 20*20 grid. You do this by changing a 1*5 area at a time. Some basic rules are:
The 20*20 grid starts out gray.
You take the first turn.
Use the mouse to select a 1*5 area.
In your 1*5 area, every gray tile turns white(your color), every white tile turns black(opponent\'s color) and every black tile will remain black.
Your opponent takes the next turn with a 5*1 area.
The amount of tiles is displayed in the left part of the screen.
The first player to reach the \"tiles to win\" amount... wins.

From the office of... Dr. Schnitzengruber
Dr Schnitzengruber
12
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 21st Jul 2007 01:48 Edited at: 1st Sep 2007 04:17
After a long playing session, I realized there was a simple error in my game. When both you and computer finish at the same time a message appears the says YqEdG hsuRW, or something like that. So I fixed it to- when a player reaches the tiles to win mark- show you win olny if you have a higher tile amount then the computer:

DBPro:


enjoy,

If everything was back to normal, it would happen again.
Dr Schnitzengruber
12
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 21st Jul 2007 03:01 Edited at: 1st Sep 2007 04:18
This is the highly-annotated decompressed version of the game:

DBPro:


DBC:


If everything was back to normal, it would happen again.
n008
12
Years of Service
User Offline
Joined: 18th Apr 2007
Location: Chernarus
Posted: 22nd Jul 2007 03:52
/me is elated

Cool game 8)

Ling creckt tsi nocreckto havela? NASA chetallnar mo lu'ul nasding!
Dr Schnitzengruber
12
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 22nd Jul 2007 20:37
If you win the computer then can you post it?

I just want to know if my AI is good enough.

From the office of... Dr. Schnitzengruber
Sixty Squares
13
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 24th Jul 2007 02:14
Wow the AI is very good. I know its strategy but I can never seem to win

Code Dragon
13
Years of Service
User Offline
Joined: 21st Aug 2006
Location: Everywhere
Posted: 29th Jul 2007 00:03
I beat it! It was very difficult, basically you have to take the AI's tendancy to not put tiles on already taken spaces if it can help it to your advantage. Make rows of white 1*5 blocks with only 4 spaces between so when the AI puts a black one anywhere it only gets 4 of the 5 spaces because you've already taken one.

This sig has been viewed times.
Master Blaster
12
Years of Service
User Offline
Joined: 11th Apr 2007
Location:
Posted: 29th Jul 2007 01:03
i finally beat it on my 5th try. cool game! thanks for the fun.
qwe
15
Years of Service
User Offline
Joined: 3rd Sep 2003
Location: place
Posted: 6th Aug 2007 09:21
cool game
Libervurto
13
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Aug 2007 17:02
Now DBC users can play it
I also took the sync rate down to 60 and reduced the sleep time.
Does it still work the same as the original?



Your signature has been erased by a mod because it was rubbish.
Dr Schnitzengruber
12
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 8th Aug 2007 21:29
Function state won't work because tiles is not a global.

try again

From the office of... Dr. Schnitzengruber
Libervurto
13
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 11th Aug 2007 17:43 Edited at: 13th Aug 2007 00:08
Did it!



little trick to make globals in DBC

arrays are global!

Your signature has been erased by a mod because it was rubbish.
aluseus GOD
12
Years of Service
User Offline
Joined: 19th Mar 2007
Location: I\'m here. Now I\'m there. I keep moving
Posted: 22nd Aug 2007 02:22
i won on my first try.

Your signature has been deleted by a moderator because this joke is getting old.
Libervurto
13
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 22nd Aug 2007 21:00
@Dr
Can you check this please, it works for me.
Now you can add DBC to the title
can you change titles?



Your signature has been erased by a mod because it was rubbish.
TDK
Retired Moderator
16
Years of Service
User Offline
Joined: 19th Nov 2002
Location: UK
Posted: 23rd Aug 2007 21:29
Quote: "Now you can add DBC to the title can you change titles?"


Mods can. Post the 20 line DBC version and I'll edit it.

TDK_Man

Libervurto
13
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 23rd Aug 2007 22:59
I'll leave that to the Dr as it's his program

Your signature has been erased by a mod because it was rubbish.
Dr Schnitzengruber
12
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 29th Aug 2007 23:24
@OBese87

Sorry, I'm not sure I could compress this into 20 lines. I don't know that much about DBC compression. I know that if i just took out the comments and put more commands on the same line it wouldn't work. When I had to compress the code for DBPro "cls" wouldn't work so i painted black box. But anyway, as I said I can't compress this.

p. s. i think your version worked, but it's not compressed.

and sorry I didn't post for so long(this thread showed up gray on my thread view).

If everything was back to normal, it would happen again.
Libervurto
13
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 31st Aug 2007 22:33
oops I forgot about the stupid 20 line thing
I'll give it a go.

Your signature has been erased by a mod because it was rubbish.
A Tea Spoon
12
Years of Service
User Offline
Joined: 23rd Apr 2007
Location: good ol USA!
Posted: 7th Sep 2007 02:03
nooo! lost after my 13th try! this is realy addictive!

What if the hokey pokey really IS what it's all about?
Libervurto
13
Years of Service
User Offline
Joined: 30th Jun 2006
Location: On Toast
Posted: 8th Sep 2007 20:28 Edited at: 8th Sep 2007 20:28
I don't think the DBC version needs to be compressed as it isn't the original program, it's just so DBC users can see it in action and for that reason I would put DBC in the title.

@MODS
Why can't we change the titles of our own threads?

In programming, nothing exists
Dr Schnitzengruber
12
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 8th Sep 2007 22:37 Edited at: 8th Sep 2007 22:39
Quote: "Why can't we change the titles of our own threads?"


If everybody could go around changing their threads, nothing would make sense and the forums will be in chaos.

@Obese
I put the decompressed DBC version in the third post.

Binary Coder
12
Years of Service
User Offline
Joined: 26th Feb 2007
Location: Queensland, Australia
Posted: 14th Oct 2007 02:35
Computer:1
Me:1

Jeff032
12
Years of Service
User Offline
Joined: 13th Aug 2007
Location:
Posted: 24th Oct 2007 00:32
We both had 189 tiles at the end of a round, and 189 tiles were required to win, so it said both "You Win" and "You Lose"

Space Game WIP
Dr Schnitzengruber
12
Years of Service
User Offline
Joined: 19th Jul 2007
Location: C:/Projects/failed/ schnitzengruber
Posted: 31st Oct 2007 22:02
Quote: "We both had 189 tiles at the end of a round, and 189 tiles were required to win, so it said both "You Win" and "You Lose"."


I fixed that in the next post(post #2).

the answer to life the universe and everything = 42
Azrael
14
Years of Service
User Offline
Joined: 2nd Mar 2005
Location: Germany
Posted: 11th Dec 2007 21:32
Great and addicting!
Love this one

Login to post a reply

Server time is: 2019-08-23 14:05:20
Your offset time is: 2019-08-23 14:05:20