Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread Yanom Mobis
Yanom Mobis
American


--- On Thu, 11/12/09, John Eriksson  wrote:

From: John Eriksson 
Subject: [pygame] Need names and nationalities for AI playes in new sport-game
To: "pygame-users" 
Date: Thursday, November 12, 2009, 6:19 AM

Hi fellow pygame developers!

I'm developing a sports game. It's a fictive sport played one-on-one,
on ice against another human player or against a rather advanced AI.

 As part of the game it is possible to create a career in the World
Series against 40 (or so) AI controlled players.

I started to search the net to find inspiration for names and
nationalities to the AI-players. But then I thought it would be much
nicer to use the names and nationalities of pygame developers instead
of just using fictive names.

All AI-players will have different skill levels wich is randomly set
in the begining of a new World Series career. In one career your named
character will be the best in the world, and in another it might be a
rookie in Division 4.

The game will be released as Freeware for both Linux and Windows. The
source code will (as allways for my projects) be available once the
game is done.

If you wan't your name to apear as a AI-player in the game, please
send me your name (first + last) and your nationality.

Best Regards
/John Eriksson
http://arainyday.se



  

Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread John Eriksson
*smile*

I work as a professional system developer. And before we had real
unicode support in our system, a name like yours would turn our system
to crap ;-)

In the game I will use bitmap-fonts and will really try to get all the
little cute curves, dots look allright :-)
But if they are missing I hope you wont be too angry with me.

Best Regards
/John Eriksson

2009/11/13 rebus_ :
> Heres one to test your unicode :)
> Davor Lučić / Croatia
>


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread John Eriksson
Haha!

I guess I didn't read my mail carefully enough before I pressed send.

Of course I won't use your e-mail addresses :-)

Best Regards
/John Eriksson

2009/11/13 Olof Bjarnason :
>
>
> 2009/11/13 John Eriksson 
>>
>> *smile*
>>
>> I hereby promise to not use your names, nationalities or
>> e-mailaddresses in any other way than to name the AI-players in Power
>> Play (or whatever it might be called whenever it's done).
>
> Do you mean that you *are* going to use our email adresses in the game
> somehow?
>
> I guess not (you are only after our names/nationalities, not emails), just
> wanted to avoid the (potential) confusion in your statement ;)
>
>>
>> Best Regards
>> /John Eriksson
>>
>> 2009/11/13  :
>> >
>> > Hi again.
>> >
>> > may I add that I assume that you *only* use our names and nationality.
>> > And *only* for this purpose.
>> > Maybe this is just me being paranoid but I wanted to state clearly that
>> > I wouldn't want you to
>> > publish any other stuff (eMail address for example) or for example sell
>> > the pygame-user statistics
>> > to a third party.
>> >
>> > other than that. you still have my OK :)
>> >
>> >
>> > On Thu, 12 Nov 2009 22:19:28 +0100, Lorenz Quack 
>> > wrote:
>> >> Hi,
>> >>
>> >> John Eriksson wrote:
>> >>>
>> >>> I started to search the net to find inspiration for names and
>> >>> nationalities to the AI-players. But then I thought it would be much
>> >>> nicer to use the names and nationalities of pygame developers instead
>> >>> of just using fictive names.
>> >>>
>> >>> [snip]
>> >>>
>> >>> If you wan't your name to apear as a AI-player in the game, please
>> >>> send me your name (first + last) and your nationality.
>> >>
>> >>
>> >> nice idea.
>> >> Lorenz Quack, Germany
>> >>
>> >> looking forward to find my name in a game =)
>> >
>
>
>
> --
> twitter.com/olofb
> olofb.wordpress.com
> olofb.wordpress.com/tag/english
>
>


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread Michael George

Michael George, NY USA

John Eriksson wrote:


I started to search the net to find inspiration for names and
nationalities to the AI-players. But then I thought it would be much
nicer to use the names and nationalities of pygame developers instead
of just using fictive names.

[snip]

If you wan't your name to apear as a AI-player in the game, please
send me your name (first + last) and your nationality.




Re: [pygame] Spam problem with joystick module

2009-11-13 Thread rouiller olivier
Thanks for the file, they work well but I still have the spam.
I guess I will have to deal with it til next release and hope the game will
still be playable.



2009/11/13 Thiago Chaves 

> Rouiller, check if these work for you.
>
> Teste1.py controls a circle (and a line, if you have 2 or more directional
> pads) on the window.
> Teste2.py outputs button numbers and directional axes information (it's a
> bit spammy when you're dealing with analog directional buttons, it's just
> because there's so many different values the axes can take in that case).
>
> -Thiago
>
>
> On Fri, Nov 13, 2009 at 2:15 AM, rouiller olivier wrote:
>
>> ok thank's let's try to build it, should be a good exercise after all.
>>
>> 2009/11/13 Lorenz Quack 
>>
>> Hi,
>>>
>>>
>>> rouiller olivier wrote:
>>>
 The calls to get_axis and get_button cause these outputs...
 Maybee there is another way of getting the values?..

>>>
>>> Not sure if there is another way.
>>> Note that this is already fixed in svn trunk.
>>> So I guess you can either try to build pygame from source from the svn
>>> version or
>>> wait for the next release.
>>>
>>>
>>> regards
>>> //Lorenz
>>>
>>
>>
>>
>> --
>> Rouiller Olivier
>> 06 79 66 89 63
>> Résidence Léonard de Vinci
>> App. A008
>> 59650 Villeneuve d'Ascq
>>
>
>


-- 
Rouiller Olivier
06 79 66 89 63
Résidence Léonard de Vinci
App. A008
59650 Villeneuve d'Ascq


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread rebus_
Heres one to test your unicode :)
Davor Lučić / Croatia


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread Olof Bjarnason
2009/11/13 John Eriksson 

> *smile*
>
> I hereby promise to not use your names, nationalities or
> e-mailaddresses in any other way than to name the AI-players in Power
> Play (or whatever it might be called whenever it's done).
>

Do you mean that you *are* going to use our email adresses in the game
somehow?

I guess not (you are only after our names/nationalities, not emails), just
wanted to avoid the (potential) confusion in your statement ;)


>
> Best Regards
> /John Eriksson
>
> 2009/11/13  :
> >
> > Hi again.
> >
> > may I add that I assume that you *only* use our names and nationality.
> And *only* for this purpose.
> > Maybe this is just me being paranoid but I wanted to state clearly that I
> wouldn't want you to
> > publish any other stuff (eMail address for example) or for example sell
> the pygame-user statistics
> > to a third party.
> >
> > other than that. you still have my OK :)
> >
> >
> > On Thu, 12 Nov 2009 22:19:28 +0100, Lorenz Quack 
> wrote:
> >> Hi,
> >>
> >> John Eriksson wrote:
> >>>
> >>> I started to search the net to find inspiration for names and
> >>> nationalities to the AI-players. But then I thought it would be much
> >>> nicer to use the names and nationalities of pygame developers instead
> >>> of just using fictive names.
> >>>
> >>> [snip]
> >>>
> >>> If you wan't your name to apear as a AI-player in the game, please
> >>> send me your name (first + last) and your nationality.
> >>
> >>
> >> nice idea.
> >> Lorenz Quack, Germany
> >>
> >> looking forward to find my name in a game =)
> >
>



-- 
twitter.com/olofb
olofb.wordpress.com
olofb.wordpress.com/tag/english


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread pierrelafran...@sympatico.ca
John Eriksson wrote:
> *smile*
> 
> I hereby promise to not use your names, nationalities or
> e-mailaddresses in any other way than to name the AI-players in Power
> Play (or whatever it might be called whenever it's done).
> 
> Best Regards
> /John Eriksson
> 
> 2009/11/13  :
>> Hi again.
>>
>> may I add that I assume that you *only* use our names and nationality. And 
>> *only* for this purpose.
>> Maybe this is just me being paranoid but I wanted to state clearly that I 
>> wouldn't want you to
>> publish any other stuff (eMail address for example) or for example sell the 
>> pygame-user statistics
>> to a third party.
>>
>> other than that. you still have my OK :)
>>
>>
>> On Thu, 12 Nov 2009 22:19:28 +0100, Lorenz Quack  
>> wrote:
>>> Hi,
>>>
>>> John Eriksson wrote:
 I started to search the net to find inspiration for names and
 nationalities to the AI-players. But then I thought it would be much
 nicer to use the names and nationalities of pygame developers instead
 of just using fictive names.

 [snip]

 If you wan't your name to apear as a AI-player in the game, please
 send me your name (first + last) and your nationality.
>>>
>>> nice idea.
>>> Lorenz Quack, Germany
>>>
>>> looking forward to find my name in a game =)
> 
> 


Pierre Lafrance
Caucasian, French speaking from Québec (Canada)

Will we know level associate to our name ?
;-)

Good luck


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread John Eriksson
*smile*

I hereby promise to not use your names, nationalities or
e-mailaddresses in any other way than to name the AI-players in Power
Play (or whatever it might be called whenever it's done).

Best Regards
/John Eriksson

2009/11/13  :
>
> Hi again.
>
> may I add that I assume that you *only* use our names and nationality. And 
> *only* for this purpose.
> Maybe this is just me being paranoid but I wanted to state clearly that I 
> wouldn't want you to
> publish any other stuff (eMail address for example) or for example sell the 
> pygame-user statistics
> to a third party.
>
> other than that. you still have my OK :)
>
>
> On Thu, 12 Nov 2009 22:19:28 +0100, Lorenz Quack  
> wrote:
>> Hi,
>>
>> John Eriksson wrote:
>>>
>>> I started to search the net to find inspiration for names and
>>> nationalities to the AI-players. But then I thought it would be much
>>> nicer to use the names and nationalities of pygame developers instead
>>> of just using fictive names.
>>>
>>> [snip]
>>>
>>> If you wan't your name to apear as a AI-player in the game, please
>>> send me your name (first + last) and your nationality.
>>
>>
>> nice idea.
>> Lorenz Quack, Germany
>>
>> looking forward to find my name in a game =)
>


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread don

Hi again.

may I add that I assume that you *only* use our names and nationality. And 
*only* for this purpose.
Maybe this is just me being paranoid but I wanted to state clearly that I 
wouldn't want you to
publish any other stuff (eMail address for example) or for example sell the 
pygame-user statistics 
to a third party.

other than that. you still have my OK :)


On Thu, 12 Nov 2009 22:19:28 +0100, Lorenz Quack  wrote:
> Hi,
> 
> John Eriksson wrote:
>>
>> I started to search the net to find inspiration for names and
>> nationalities to the AI-players. But then I thought it would be much
>> nicer to use the names and nationalities of pygame developers instead
>> of just using fictive names.
>>
>> [snip]
>>
>> If you wan't your name to apear as a AI-player in the game, please
>> send me your name (first + last) and your nationality.
> 
> 
> nice idea.
> Lorenz Quack, Germany
> 
> looking forward to find my name in a game =)



Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread Chris Van Bael
Chris Van Bael / Belgium

On Fri, Nov 13, 2009 at 1:06 PM, Alex Nordlund  wrote:
> Alexander Nordlund / Sweden :-)
>
> ---
> //Alex
>
> On Fri, Nov 13, 2009 at 12:53 PM, Pablo Moleri  wrote:
>> Pablo Moleri / Uruguay
>>
>> On Fri, Nov 13, 2009 at 9:44 AM, Stuart Axon 
>> wrote:
>>>
>>> Hi,
>>>   Stuart Axon - England / Britain / UK.   (Some sports seem to do UK
>>> or GB, others have seperate teams for England/Scotland/Wales)
>>>
>>> S++
>>>
>>> 2009/11/13 John Eriksson :
>>> > Hello every one!
>>> >
>>> > What a tremendous response! :-D
>>> >
>>> > I realized I was a little vague in my description of the game. This
>>> > was partly because I didn't want to spoile the release of the game.
>>> > But since you all will be a part of the game it's only fair that you
>>> > know what you lend your name to.
>>> >
>>> > The game is called Power Play (right know anyway. It's changed name
>>> > several times over the last week). It's somewhat inspierd by curling
>>> > (Sorry Toni, no Hattrick killer. I really loved that game too!). It
>>> > will be possible to play a singel game, 2-player game or to create a
>>> > career in the Power Play World Series (this is where your name will
>>> > occure).
>>> >
>>> > The World series is devided into several divisions and the player has
>>> > to work his/her way up to the top to be the World Champion!
>>> >
>>> > This game is actually a spin off from a test I did when trying out the
>>> > mathematics for completely different  game I'm working on. I just had
>>> > to try to create a really tough AI and it worked out really well. It's
>>> > a game of strategy and carefull planning. It's highly addictive and I
>>> > almost can't wait until I have finished it enough to show it to you.
>>> > But please have patience with me! I only have a couple of hours each
>>> > day to spare for game development after the children went to bed :-)
>>> >
>>> > I got a question from Matthew if I wanted just one or many from each
>>> > country;
>>> > Answer: It doesn't matter how many names I get for each country. The
>>> > more the merrier! :-D
>>> >
>>> > Right now I'm counting (including my self) 15 names from 11 different
>>> > countris!
>>> > The PyGame community rocks!
>>> >
>>> > Keep 'em comming!
>>> > Best Regards
>>> > /John Eriksson
>>> >
>>
>>
>


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread Shadd

Take my name too if you like: Federico Salerno, from Italy.


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread Alex Nordlund
Alexander Nordlund / Sweden :-)

---
//Alex

On Fri, Nov 13, 2009 at 12:53 PM, Pablo Moleri  wrote:
> Pablo Moleri / Uruguay
>
> On Fri, Nov 13, 2009 at 9:44 AM, Stuart Axon 
> wrote:
>>
>> Hi,
>>   Stuart Axon - England / Britain / UK.   (Some sports seem to do UK
>> or GB, others have seperate teams for England/Scotland/Wales)
>>
>> S++
>>
>> 2009/11/13 John Eriksson :
>> > Hello every one!
>> >
>> > What a tremendous response! :-D
>> >
>> > I realized I was a little vague in my description of the game. This
>> > was partly because I didn't want to spoile the release of the game.
>> > But since you all will be a part of the game it's only fair that you
>> > know what you lend your name to.
>> >
>> > The game is called Power Play (right know anyway. It's changed name
>> > several times over the last week). It's somewhat inspierd by curling
>> > (Sorry Toni, no Hattrick killer. I really loved that game too!). It
>> > will be possible to play a singel game, 2-player game or to create a
>> > career in the Power Play World Series (this is where your name will
>> > occure).
>> >
>> > The World series is devided into several divisions and the player has
>> > to work his/her way up to the top to be the World Champion!
>> >
>> > This game is actually a spin off from a test I did when trying out the
>> > mathematics for completely different  game I'm working on. I just had
>> > to try to create a really tough AI and it worked out really well. It's
>> > a game of strategy and carefull planning. It's highly addictive and I
>> > almost can't wait until I have finished it enough to show it to you.
>> > But please have patience with me! I only have a couple of hours each
>> > day to spare for game development after the children went to bed :-)
>> >
>> > I got a question from Matthew if I wanted just one or many from each
>> > country;
>> > Answer: It doesn't matter how many names I get for each country. The
>> > more the merrier! :-D
>> >
>> > Right now I'm counting (including my self) 15 names from 11 different
>> > countris!
>> > The PyGame community rocks!
>> >
>> > Keep 'em comming!
>> > Best Regards
>> > /John Eriksson
>> >
>
>


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread Pablo Moleri
Pablo Moleri / Uruguay

On Fri, Nov 13, 2009 at 9:44 AM, Stuart Axon

> wrote:

> Hi,
>   Stuart Axon - England / Britain / UK.   (Some sports seem to do UK
> or GB, others have seperate teams for England/Scotland/Wales)
>
> S++
>
> 2009/11/13 John Eriksson :
> > Hello every one!
> >
> > What a tremendous response! :-D
> >
> > I realized I was a little vague in my description of the game. This
> > was partly because I didn't want to spoile the release of the game.
> > But since you all will be a part of the game it's only fair that you
> > know what you lend your name to.
> >
> > The game is called Power Play (right know anyway. It's changed name
> > several times over the last week). It's somewhat inspierd by curling
> > (Sorry Toni, no Hattrick killer. I really loved that game too!). It
> > will be possible to play a singel game, 2-player game or to create a
> > career in the Power Play World Series (this is where your name will
> > occure).
> >
> > The World series is devided into several divisions and the player has
> > to work his/her way up to the top to be the World Champion!
> >
> > This game is actually a spin off from a test I did when trying out the
> > mathematics for completely different  game I'm working on. I just had
> > to try to create a really tough AI and it worked out really well. It's
> > a game of strategy and carefull planning. It's highly addictive and I
> > almost can't wait until I have finished it enough to show it to you.
> > But please have patience with me! I only have a couple of hours each
> > day to spare for game development after the children went to bed :-)
> >
> > I got a question from Matthew if I wanted just one or many from each
> country;
> > Answer: It doesn't matter how many names I get for each country. The
> > more the merrier! :-D
> >
> > Right now I'm counting (including my self) 15 names from 11 different
> > countris!
> > The PyGame community rocks!
> >
> > Keep 'em comming!
> > Best Regards
> > /John Eriksson
> >
>


Re: [pygame] Need names and nationalities for AI playes in new sport-game

2009-11-13 Thread Stuart Axon
Hi,
   Stuart Axon - England / Britain / UK.   (Some sports seem to do UK
or GB, others have seperate teams for England/Scotland/Wales)

S++

2009/11/13 John Eriksson :
> Hello every one!
>
> What a tremendous response! :-D
>
> I realized I was a little vague in my description of the game. This
> was partly because I didn't want to spoile the release of the game.
> But since you all will be a part of the game it's only fair that you
> know what you lend your name to.
>
> The game is called Power Play (right know anyway. It's changed name
> several times over the last week). It's somewhat inspierd by curling
> (Sorry Toni, no Hattrick killer. I really loved that game too!). It
> will be possible to play a singel game, 2-player game or to create a
> career in the Power Play World Series (this is where your name will
> occure).
>
> The World series is devided into several divisions and the player has
> to work his/her way up to the top to be the World Champion!
>
> This game is actually a spin off from a test I did when trying out the
> mathematics for completely different  game I'm working on. I just had
> to try to create a really tough AI and it worked out really well. It's
> a game of strategy and carefull planning. It's highly addictive and I
> almost can't wait until I have finished it enough to show it to you.
> But please have patience with me! I only have a couple of hours each
> day to spare for game development after the children went to bed :-)
>
> I got a question from Matthew if I wanted just one or many from each country;
> Answer: It doesn't matter how many names I get for each country. The
> more the merrier! :-D
>
> Right now I'm counting (including my self) 15 names from 11 different
> countris!
> The PyGame community rocks!
>
> Keep 'em comming!
> Best Regards
> /John Eriksson
>


Re: [pygame] Spam problem with joystick module

2009-11-13 Thread Thiago Chaves
Rouiller, check if these work for you.

Teste1.py controls a circle (and a line, if you have 2 or more directional
pads) on the window.
Teste2.py outputs button numbers and directional axes information (it's a
bit spammy when you're dealing with analog directional buttons, it's just
because there's so many different values the axes can take in that case).

-Thiago

On Fri, Nov 13, 2009 at 2:15 AM, rouiller olivier wrote:

> ok thank's let's try to build it, should be a good exercise after all.
>
> 2009/11/13 Lorenz Quack 
>
> Hi,
>>
>>
>> rouiller olivier wrote:
>>
>>> The calls to get_axis and get_button cause these outputs...
>>> Maybee there is another way of getting the values?..
>>>
>>
>> Not sure if there is another way.
>> Note that this is already fixed in svn trunk.
>> So I guess you can either try to build pygame from source from the svn
>> version or
>> wait for the next release.
>>
>>
>> regards
>> //Lorenz
>>
>
>
>
> --
> Rouiller Olivier
> 06 79 66 89 63
> Résidence Léonard de Vinci
> App. A008
> 59650 Villeneuve d'Ascq
>
#!/usr/bin/python

import pygame
import math
import random

#Constants
black  = (0,0,0)
color  = (255,255,255)
speed  = 3.0
size   = 7
length = 20

#Pygame initialization
pygame.init()
pygame.display.set_mode((500,500))
s = pygame.display.get_surface()
t = pygame.time.Clock()

#Checking for joysticks
print "Joysticks:", pygame.joystick.get_count()
j = pygame.joystick.Joystick(0)
j.init()

print "Using joystick:",j.get_name(),"With",j.get_numbuttons(),"buttons and",j.get_numaxes(),"axes."
print "Press button 1 to change color (or button 0, if you start counting from 0)"
print "Press button",j.get_numbuttons(),"to quit. (or button", j.get_numbuttons()-1,"if you start counting from 0)"

x = s.get_width()/2.0
y = s.get_height()/2.0
angle = 0.0

def loop():
global s, x, y, b, j, black, size, length, angle, color
while pygame.event.get(pygame.QUIT) == []:
s.fill(black)
pygame.event.pump()

x += j.get_axis(0)*speed
y += j.get_axis(1)*speed
pygame.draw.circle(s, color, (int(round(x)),int(round(y))), size)

if(j.get_numaxes() >= 4):
fx = j.get_axis(2)
fy = j.get_axis(3)
if math.fabs(fx)+math.fabs(fy) > 0.5:
angle = math.atan2(fy, fx)
pygame.draw.line(s, color, (int(round(x)),int(round(y))), (int(round(x+math.cos(angle)*length)),int(round((y+math.sin(angle)*length)

if j.get_button(j.get_numbuttons()-1):
print "Quit button pressed!"
return
if j.get_button(0):
color = (random.randint(50,255),random.randint(50,255),random.randint(50,255))

pygame.display.flip()
t.tick(80)

loop()
#!/usr/bin/python

import pygame

#Pygame initialization
pygame.init()
#pygame.display.set_mode((500,500))
#s = display.get_surface()
t = pygame.time.Clock()

print "Joysticks:", pygame.joystick.get_count()
j = pygame.joystick.Joystick(0)
j.init()
print "Using joystick:",j.get_name(),"With",j.get_numbuttons(),"buttons and",j.get_numaxes(),"axes."
print "Press joystick button 0 to quit"

def loop():
global t, j
while pygame.event.get(pygame.QUIT) == []:
#Getting joystick motion
axes = pygame.event.get(pygame.JOYAXISMOTION)
if axes != []:
axes_data = []
for c in range(0, j.get_numaxes()):
axes_data += [str(round(j.get_axis(c),1))]
print axes_data

#Getting button presses
buttonsdown = pygame.event.get(pygame.JOYBUTTONDOWN)
for button in buttonsdown:
print "Pressed button", button.button
if button.button == 0:
return

#Getting button releases
buttonsup = pygame.event.get(pygame.JOYBUTTONUP)
for button in buttonsup:
print "Released button", button.button

t.tick(80)

loop()