Wednesday, November 12, 2008

Ratings of "Who Slides Wins!"

Ratings
Fun: 2.0
Production: 2.8
Innovation: 2.0
Respondents: 21

19% respondents marked the game as not working.
0% of respondents wished to disqualify the entry.
19% of 21 = 4



Comments:

the notes say that the game has the ability to automatically download pictures, and play puzzles larger than 3x3, but these aren't readily apparent just running the game. the other problem is that it doesn't wait for keyup events, so it's too easy for it to see two consecutive keystrokes when the key was only pressed once, adding moves to your solution and causing you to lose the game.

File "run_game.py", line 4, in main.main() File "/home/lucio/Desktop/pyweek/v4victory/who-slides-wins-0.5/gamelib/main.py", line 129, in main text = font.render("Who Slides Wins!",0,FONTCOLOR) pygame.error: SDL_ttf render failed

Didn't even check if I had the puzzle correct! :D Trying music is great since many forget it but this one was a bit headache-inducing. :P

$ python run_game.py Traceback (most recent call last): File "run_game.py", line 4, in main.main() File "/tmp/who-slides-wins-0.5/gamelib/main.py", line 129, in main text = font.render("Who Slides Wins!",0,FONTCOLOR) pygame.error: SDL_ttf render failed

I think my biggest complaint with this game is that a lot of times there's just no way to win from the beginning (in a lot of cases the computer does the minimum number of moves necessary). In terms of idea, a 3x3 sliding game simply isn't very interesting and the way it's shuffled it's a bit too easy (at least to make the minimum number of moves). Also, the relation with the theme is very vague, it's just a picture of string, there's no relation to length. It's nice that it feels complete and even polished, but there simply wasn't much for me to enjoy in this game. The interface is nice, though.

Not very interesting use of theme; but congratulations on finishing the game...

I get the signal error using the "final" entry, so I have to give this "Did not Work". Tried the windows version posted later, which did work, and was OK for a sliding puzzle.

Cool game! It's a neat concept, and it's cool that you were able to get some reasonably reliable puzzle-solving AI implemented in a week. Puzzle games are always a hard sell, particularly if there isn't some sort of action element involved to keep people engaged and from being frustrated. Neat extension of an old concept though, and good job with the smoothly sliding blocks -- that looked quite good.

The N-puzzle is kind of old... I guess it's not tic-tac-toe, at least.

When the first times. The game is very good. Keep going.

Changing the music when the computer does its turn is a nice touch :)

I figure the computer will always win, which lessens some of the fun :)

Nice wool picture!

Pros: The game looks complete and polished. Cons: The game idea is too worn, need some new spin to atract. In windows at least, the human player dont see any cue about wich tile will move when him/her press the key. Tenuous connection to topic eh? The controls need work as it will make two pieces move - since you count moves players would feel this unfair.

I'm not sure if I understood this game. the puzzle only required two or four moves to solve and I couldn't find any way of making it give me a harder puzzle. If it was harder I'd enjoy it a lot more.

Problem with signal... Crashed for me. Problem with signal?

I didn't find this to be all that fun - but then again I don't enjoy these types of puzzles. (My personal method of picking directions at random doesn't give me much of a chance of beating the computer...) Also... slight bug - I can win without solving the puzzle :P

The theme is very tacked on to the game.

Don't be discouraged by my rating, the game could be a lot of fun if you added some other pictures and put in some kind of menu to easily set puzzle size and shuffling degree (if that's possible).

Couldn't figure out how to play again without restarting the game. Very difficult. It took me 19 moves, it took the computer 2 moves. I guess I'm dumb. Play was smooth, though an all keyboard interface would have been nice.

I have nothing to say.

Uhh, how does this comply with the theme? I solved the puzzle and it didn't give me any result.

Simple.

Wednesday, September 17, 2008

Hi Vijay, can you try the game on Windows?

There was a message posted that there was a compatiblity problem.

compatibility problem?:
who-slides-wins-0.5.zip , team Who slides wins! : for me it crashed with:
old = signal.signal(signal.SIGALRM, self.handle_timeout)
AttributeError: 'module' object has no attribute 'SIGALRM'
I dont know if it is a windows-linux compat or a python 2.4 vs 2.5(I am on
windows and 2.4)

I am on Linux and have not tested on Windows.

--
O.R.Senthil Kumaran
http://uthcode.sarovar.org

Sunday, September 14, 2008

Who Slides Wins! - v0.5

The entry is here:
http://www.pyweek.org/e/v4victory/

Re: Updates so far.

I did not get, it. :-(

* scriptor Kannappan, explico

> hmmm...u hav shown ur f'in smartness yet again....i shud hav realised
> this a long time back....hahaa ..my bad ..certain things never change

Re: Updates so far.

hmmm...u hav shown ur f'in smartness yet again....i shud hav realised
this a long time back....hahaa ..my bad ..certain things never change

On 9/11/08, O.R.Senthil Kumaran <orsenthil@gmail.com> wrote:
> Vijay, Kannapa:
> Do you have any updates from your ends?
>
> I am trying to complete the stage II where the computer will automatically
> solve the puzzle. Made some changes and I have checked in to cvs. If you
> have
> any updates in terms of Music(Kannaps) and Splash Screen(Vijay), please
> share.
> Faster we discuss better. If no updates yet, not to worry, we still have
> time
> and try your chance in meddling with some pygame examples.
>

--
Sent from Gmail for mobile | mobile.google.com

"The problem with you hackers is you never stop working" - Snowcrash

Bugs to fix

1) N-Puzzle Non Return value. Sev 1. Altough very consistent and proper wrapper
is given, this bug needs to be fixed, because the game won't start when this
bug appears.

TODO:

1) Declaring the Winner. Priority 1

2) Submission before 12:00 Tonight. ( This is an exclusive condition and will
hold good, even if both are not fixed). Package and submit. Packaging will take
30 mins to 1 hour.

Friday, September 12, 2008

Thursday, September 11, 2008

Success for Stage II, at last

This one took more than 16 hours of constant trials, retrials, start from
scract again, discussing at IRC, and lot of experimentation.

But, glad that it is done!
npuzzle.py is having a problem wherein it gives a unsolvable state. I got to
make to sure that those things should not be passed on to UI.

Shall post an animated gif and off to stage III now.
Will look into the npuzzle problem next to it.


--
O.R.Senthil Kumaran
http://uthcode.sarovar.org

Updates so far.

Vijay, Kannapa:
Do you have any updates from your ends?

I am trying to complete the stage II where the computer will automatically
solve the puzzle. Made some changes and I have checked in to cvs. If you have
any updates in terms of Music(Kannaps) and Splash Screen(Vijay), please share.
Faster we discuss better. If no updates yet, not to worry, we still have time
and try your chance in meddling with some pygame examples.

Tuesday, September 9, 2008

Re: For pygame

hey, i haven't gone thru any of the links u hav sent as yet.. will try to... soon

jus thinking loud....for music "version1", am thinkin of gettin sounds that generate a simple pleasant chime when the game is completed...and a normal sound for other moves..in case u guys come across any sound lemme know...i will also spend some time on finding them..

my feeling is ...pleasant music will be more apt for these kindaa games where u have good quality photos coming up...

On Tue, Sep 9, 2008 at 6:38 PM, O.R.Senthil Kumaran <orsenthil@gmail.com> wrote:
Dei Vijay, see if you can workout an intial splasher screen for the game da.
Try the TextWidget in pygame:
www.learningpython.com/2006/12/13/textwidget-a-simple-text-class-for-pygame/

Kannapa: We might need to add music to the initial screen and for every move.
Also the algo-related challenges are entirely in N puzzle solution used by
computer. For large shuffles it may not work properly. We have to analyze why
it is so and probably find a better solution.

But I would suggest music to be higher priority ( and simpler one) and then the
algo changes.



--
"The problem with you hackers is you never stop working" - Snowcrash

For pygame

Dei Vijay, see if you can workout an intial splasher screen for the game da.
Try the TextWidget in pygame:
www.learningpython.com/2006/12/13/textwidget-a-simple-text-class-for-pygame/

Kannapa: We might need to add music to the initial screen and for every move.
Also the algo-related challenges are entirely in N puzzle solution used by
computer. For large shuffles it may not work properly. We have to analyze why
it is so and probably find a better solution.

But I would suggest music to be higher priority ( and simpler one) and then the
algo changes.

Stage II and Stage III Definitions for Who-Slides Wins

* Stage II will be the Jumble and Computer Automatically Solving it.
* Stage III will be both the computer solution and human solution in the same
Surface playing together.

Deadline for completion of Stage II is tommorow. (Sep 10)
Stage III should be attempted tommorow itself.

--
O.R.Senthil Kumaran
http://uthcode.sarovar.org

Pygame ideas/TODO

1) Default Picture should just be NxN number square listing 1-8.
2) Introduction Screen with Music. Introduction to last till the picture gets
downloaded. Use creativity and can include creative artist.
3) Setup the Game HomePage.
4) Use the updated Pygames library.
5) Create the Executable.
6) Try music for each slide.
7) Presenting GUI options to the User.


--
O.R.Senthil Kumaran
http://uthcode.sarovar.org

Stage 1 of who-slides-wins

I defined Stage-1 such that It downloads the picture of the day. Creates the
Puzzle and presents to the user.
It is completed and is available at:
http://sarovar.org/plugins/scmcvs/cvsweb.php/trunk/python/pygame/who-slides-wins/?cvsroot=uthcode

Kannapa, Vijayakumar:
I am using the CVS option available at uthcode to version manage.
If you would like to you, then I suggest install cvs client ( Tortoise CVS) and
checkout the code and start modifying it.

If someother hosting is your preference ( like code.google.com), we can use
that also ( it uses SVN).

Both: Please try this stage-1. We can discuss and take it further from this
point.

Btw. Stage-1 derives heavily from PicturePuzzle, so got to credit that author.
I made changes to the code thought.


--
O.R.Senthil Kumaran
http://uthcode.sarovar.org

Monday, September 8, 2008

Pygame Tutorials and Sprite Tutorial

This Pygame Tutorial for beginners clarified a lot of things about pygame, and
pixels and drawing lines.
http://wordpress.com/tag/pygame-tutorial/

Then to understand a bit about sprites and blit, I headed over to:
http://www.sacredchao.net/~piman/writing/sprite-tutorial.shtml

With a fair amount of understanding, I should be able to get started with
cuting the images for the puzzle now.

Yesterday, while trying with PicturePuzzle, I got lost with not able to
understand the blit and other functions. So I took this approach.

Time is running, got to get the stage 1 of teh game ready.

--
O.R.Senthil Kumaran
http://uthcode.sarovar.org

Saturday, September 6, 2008

Pyweek begins!

PyWeek Beings and the Theme is "The Length of a piece of String."

phoe6: Can someone help me understand the theme :- "The length of a
piece of string"
boiserm: :-)
phoe6: I am have certain ideas, like the game should corelate the
theme, but that idea is bit vague.
RB[0]: well basically, you need to make a game that as one of it's
key elements it has length of a string
phoe6: so, I thought I would better discuss
RB[0]: np
RB[0]: as long as strings are in it
RB[0]: and it matters there length
RB[0]: anything is about fine :)
phoe6: Ohh, one of key-elements to be length of string.. :)
phoe6: I get it.
boiserm: so... theoretically... you could count the characters in a
file? ;-)
phoe6: :D
phoe6: yeah. :)
RB[0]: lol

--
O.R.Senthil Kumaran
http://uthcode.sarovar.org

Thursday, September 4, 2008

Re: How to get started with pygame?

am moving my other commitments by a week to free myself a bit for this. 

have skimmed through both of the below links and got a decent understanding... planning to write a few lines of code and try out a few practice games

On Thu, Sep 4, 2008 at 6:20 AM, Senthil Kumaran <orsenthil@gmail.com> wrote:
1) Start with the Introduction written by Peter Shinners:
http://www.pygame.org/docs/tut/intro/intro.html

2) Head to Newbie guide:
http://www.pygame.org/docs/tut/newbieguide.html



--
"The problem with you hackers is you never stop working" - Snowcrash

Re: Registering for Pygame

On Thu, Sep 4, 2008 at 4:01 PM, Kannappan <deshkanna@gmail.com> wrote:
> registered now as .. deshkanna
>
> ooops....contest starts on sept 7...i was thinking it starts end of sept ;-)

I thought the same. I don't want to do aadupuli in a hurry. we will
start with your game.

--
Thanks and Regards,
Vijayakumar Subburaj

"Open the pod bay doors, HAL"

Re: Registering for Pygame

registered now as .. deshkanna

ooops....contest starts on sept 7...i was thinking it starts end of sept ;-)

On Thu, Sep 4, 2008 at 1:55 PM, O.R.Senthil Kumaran <orsenthil@gmail.com> wrote:
Kannappa, what would be your prefered id? deshkanna?

v4vijayakumar: Goats-and-Tigers is getting introduced through:
http://aadupuli.appspot.com/challenge
We can work on that as well.

I justed started with getting some idea of pygames. I have the initial screens
ready. I shall post the code and screen-shot next. Which will give the idea of
what our game is going to be.

PyWeek, however goes like this:
1) Register as a team. (I shall do, once I get Kannapan's id).
       - Team Name (v4vijayakumar and deshkanna to choose)
       - Game Name (Phoe6 suggests: "Who Slides Wins!")
       - Description (Phoe6)
       - Team members

2) Then we vote for the themes.
       - Login to the PyWeek website and look at the themes in the bottom
         right hand side corner and cast your votes from (1-5).
       - Keep in mind to vote something that will enable us to go for our idea
         of game.
       - If some other idea wins, then we adopt our game accordingly or go for
         a new game.

Till then let us experiment and play with pygame.

IMPORTANT: While doing reply-all (encourage), please remove email ids and
remove the previous email quotes completely, as we have set to blog our
coversation at http://pygame-trials.blogspot.com/



--
"The problem with you hackers is you never stop working." - Snowcrash

Who slides wins!


Does it look like the sliding game puzzle? Our game would mostly revolve around that.

Well, in todays trial to understand pygame, got some concepts of display, surface and rects cleared up. It should be helpful.

Here is the picture which is used in this code-snippet.


import sys
import pygame

pygame.init()

size = width, height = 470,325
black = 0,0,0
white = 255,255,255

pygame.display.set_caption("Who Slides Wins!")

screen = pygame.display.set_mode(size)

picture = pygame.image.load("picture.jpg").convert()
pictrect = picture.get_rect()

# Draw vertical Rectangle
vrect = pygame.Rect(0,0,2,325)

# Create the Surface Object

vsurface = pygame.Surface(vrect.size)
vsurface.fill(black)

# Draw Horitical Rectangle
hrect = pygame.Rect(0,0,470,2)

# Create the Surface Object
hsurface = pygame.Surface(hrect.size)
hsurface.fill(black)

# Black Rectangle
brect = pygame.Rect(0,0,156,108)
bsurface = pygame.Surface(brect.size)
bsurface.fill(black)

while True:
for event in pygame.event.get():
if event.type == pygame.QUIT:
sys.exit()
screen.fill(black)
screen.blit(picture, pictrect)
screen.blit(vsurface,(156,0))
screen.blit(vsurface,(312,0))
screen.blit(hsurface,(0,108))
screen.blit(hsurface,(0,216))
screen.blit(bsurface,(312,216))
pygame.display.flip()

Re: Registering for Pygame

Kannappa, what would be your prefered id? deshkanna?

v4vijayakumar: Goats-and-Tigers is getting introduced through:
http://aadupuli.appspot.com/challenge
We can work on that as well.

I justed started with getting some idea of pygames. I have the initial screens
ready. I shall post the code and screen-shot next. Which will give the idea of
what our game is going to be.

PyWeek, however goes like this:
1) Register as a team. (I shall do, once I get Kannapan's id).
- Team Name (v4vijayakumar and deshkanna to choose)
- Game Name (Phoe6 suggests: "Who Slides Wins!")
- Description (Phoe6)
- Team members

2) Then we vote for the themes.
- Login to the PyWeek website and look at the themes in the bottom
right hand side corner and cast your votes from (1-5).
- Keep in mind to vote something that will enable us to go for our idea
of game.
- If some other idea wins, then we adopt our game accordingly or go for
a new game.

Till then let us experiment and play with pygame.

IMPORTANT: While doing reply-all (encourage), please remove email ids and
remove the previous email quotes completely, as we have set to blog our
coversation at http://pygame-trials.blogspot.com/

Wednesday, September 3, 2008

Re: Registering for Pygame

On Thu, Sep 4, 2008 at 6:18 AM, Senthil Kumaran <orsenthil@gmail.com> wrote:
> Please create accounts at www.pyweek.org both - Kannappan and Vijaykumar!
>
> Mine is phoe6.


me, v4vijayakumar.

Senthil, I thought we would develop goats-and-tigers.

Lets introduce this game to the world, any idea?! :-)

--
Thanks and Regards,
Vijayakumar Subburaj

"Open the pod bay doors, HAL"

How to get started with pygame?

1) Start with the Introduction written by Peter Shinners:
http://www.pygame.org/docs/tut/intro/intro.html

2) Head to Newbie guide:
http://www.pygame.org/docs/tut/newbieguide.html

Registering for Pygame

Please create accounts at www.pyweek.org both - Kannappan and Vijaykumar!

Mine is phoe6.


On Thu, Aug 14, 2008 at 5:41 PM, O.R.Senthil Kumaran <orsenthil@gmail.com> wrote:
Okay, I was thinking about things to do before going for the challenge.
1) Learn pygames api.
2) Decide on the Game Plan
3) Practise.

I have an idea for the game. It is building upon the some code I already have.
It is Visual ( Randomly selected visual, may be from Nat Geo)  N- Puzzle and
the player has to solve it in less number of moves than the computer could
solve.

It has Pygames involved in the creating the maze out of the picture and in
the move.

And very strong logic for the N-Puzzle.


Have a look at: http://www.pygame.org/project/828/
http://phoe6.livejournal.com/56114.html

Also, I have created a Blog for Prep and document. Use the email id in CC for
posting to the blog.
* scriptor Kannappan, explico

> where are we on this ?? .. and any plans for how we are gonna train ?? .. i
> waanu giv this a decent shot  and ... i want u guys to lead this, coz i dont
> hav much of an idea abt gamin as of now...
>
> On Mon, Jul 28, 2008 at 9:45 AM, Kannappan <deshkanna@gmail.com> wrote:
>
> > I am game !!
> >
> > On 7/28/08, O.R.Senthil Kumaran <orsenthil@gmail.com> wrote:
> > > Are you okay to start training yourself for this one. We are a three
> > member
> > > team going in for this?
> > > --
> > > Senthil
> > >
> > > * scriptor richard@pyweek.org, explico
> > >
> > >> The date for the SEVENTH bi-annual PyWeek challenge has been set: Sunday
> > >> 7th
> > >> September to Sunday 14th September (00:00UTC to 00:00UTC).
> > >>
> > >>   http://pyweek.org/
> > >>
> > >> The PyWeek challenge invites entrants to write a game in one week from
> > >> scratch either as an individual or in a team. Entries must be developed
> > >> in Python, during the challenge, and must incorporate some theme chosen
> > >> at the start of the challenge.
> > >>
> > >>
> > >> REGISTRATION IS NOT YET OPEN --
> > >>
> > >> In order to reduce the number of unnecessary registrations, we will open
> > >> the challenge for registration one month before the start date. See the
> > >> competition timetable and rules:
> > >>
> > >>    http://www.pyweek.org/
> > >>
> > >>
> > >> PLANNING FOR THE CHALLENGE --
> > >>
> > >> Make sure you have working versions of the libraries you're going to
> > use.
> > >> The rules page has a list of libraries and other resources.
> > >>
> > >> Make sure you know how to build an MD5 sum for your submission. See the
> > >> challenge help page for more information.
> > >>
> > >> Make sure you can build packages to submit as your final submission (if
> > >> you're going to use py2exe, make sure you know how to use it and that it
> > >> works).
> > >>
> > >> If you don't have access to Linux, Windows or a Mac to test on, contact
> > >> friends, family or other competitors to find someone who is able to test
> > >> for you.
> > >>
> > >>
> > >>
> > >> --
> > >> Visit the PyWeek website:
> > >>   http://www.pyweek.org/
> > >> --
> > >> http://mail.python.org/mailman/listinfo/python-announce-list
> > >>
> > >>         Support the Python Software Foundation:
> > >>         http://www.python.org/psf/donations.html
> > >
> > > --
> > > O.R.Senthil Kumaran
> > > http://uthcode.sarovar.org
> > >
> >
> > --
> > Sent from Gmail for mobile | mobile.google.com
> >
> > "His mind was good, but he only understood one or two things in the
> > whole world - samurai movies and the Macintosh - and he understood
> > them far, far too  well." - Snowcrash
> >
>
>
>
> --
> "His mind was good, but he only understood one or two things in the whole
> world - samurai movies and the Macintosh - and he understood them far, far
> too well." - Snowcrash

--
O.R.Senthil Kumaran
http://uthcode.sarovar.org



--
O.R.Senthil Kumaran
http://phoe6.livejournal.com

Thursday, August 14, 2008

Re: Python game programming challenge, NUMBER 7, in September!

Okay, I was thinking about things to do before going for the challenge.
1) Learn pygames api.
2) Decide on the Game Plan
3) Practise.

I have an idea for the game. It is building upon the some code I already have.
It is Visual ( Randomly selected visual, may be from Nat Geo) N- Puzzle and
the player has to solve it in less number of moves than the computer could
solve.

It has Pygames involved in the creating the maze out of the picture and in
the move.

And very strong logic for the N-Puzzle.


Have a look at: http://www.pygame.org/project/828/
http://phoe6.livejournal.com/56114.html

Also, I have created a Blog for Prep and document. Use the email id in CC for
posting to the blog.
* scriptor Kannappan, explico

> where are we on this ?? .. and any plans for how we are gonna train ?? .. i
> waanu giv this a decent shot and ... i want u guys to lead this, coz i dont
> hav much of an idea abt gamin as of now...
>
> On Mon, Jul 28, 2008 at 9:45 AM, Kannappan <deshkanna@gmail.com> wrote:
>
> > I am game !!
> >
> > On 7/28/08, O.R.Senthil Kumaran <orsenthil@gmail.com> wrote:
> > > Are you okay to start training yourself for this one. We are a three
> > member
> > > team going in for this?
> > > --
> > > Senthil
> > >
> > > * scriptor richard@pyweek.org, explico
> > >
> > >> The date for the SEVENTH bi-annual PyWeek challenge has been set: Sunday
> > >> 7th
> > >> September to Sunday 14th September (00:00UTC to 00:00UTC).
> > >>
> > >> http://pyweek.org/
> > >>
> > >> The PyWeek challenge invites entrants to write a game in one week from
> > >> scratch either as an individual or in a team. Entries must be developed
> > >> in Python, during the challenge, and must incorporate some theme chosen
> > >> at the start of the challenge.
> > >>
> > >>
> > >> REGISTRATION IS NOT YET OPEN --
> > >>
> > >> In order to reduce the number of unnecessary registrations, we will open
> > >> the challenge for registration one month before the start date. See the
> > >> competition timetable and rules:
> > >>
> > >> http://www.pyweek.org/
> > >>
> > >>
> > >> PLANNING FOR THE CHALLENGE --
> > >>
> > >> Make sure you have working versions of the libraries you're going to
> > use.
> > >> The rules page has a list of libraries and other resources.
> > >>
> > >> Make sure you know how to build an MD5 sum for your submission. See the
> > >> challenge help page for more information.
> > >>
> > >> Make sure you can build packages to submit as your final submission (if
> > >> you're going to use py2exe, make sure you know how to use it and that it
> > >> works).
> > >>
> > >> If you don't have access to Linux, Windows or a Mac to test on, contact
> > >> friends, family or other competitors to find someone who is able to test
> > >> for you.
> > >>
> > >>
> > >>
> > >> --
> > >> Visit the PyWeek website:
> > >> http://www.pyweek.org/
> > >> --
> > >> http://mail.python.org/mailman/listinfo/python-announce-list
> > >>
> > >> Support the Python Software Foundation:
> > >> http://www.python.org/psf/donations.html
> > >
> > > --
> > > O.R.Senthil Kumaran
> > > http://uthcode.sarovar.org
> > >
> >
> > --
> > Sent from Gmail for mobile | mobile.google.com
> >
> > "His mind was good, but he only understood one or two things in the
> > whole world - samurai movies and the Macintosh - and he understood
> > them far, far too well." - Snowcrash
> >
>
>
>
> --
> "His mind was good, but he only understood one or two things in the whole
> world - samurai movies and the Macintosh - and he understood them far, far
> too well." - Snowcrash

--
O.R.Senthil Kumaran
http://uthcode.sarovar.org