Re: bit of python help

2015-05-07 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: bit of python help @Kyleman123, Modulo is a mathimatical term. It is the equivalent of a modulus, which is the base with respect to which a congruence is computed. It could also be The absolute value of a complex number. Either suits it. However, since were tlaking about both math

Re: bit of python help

2015-05-06 Thread AudioGames . net Forum — Developers room : frastlin via Audiogames-reflector
Re: bit of python help You could also look at iterators from itertoolsThey are objects you call next on and it will alternate between 1 and 2.for example:import itertoolsl = [player1, player2, player3]iter = itertools.cycle(l)for i in range(5): print(next(iter

Re: bit of python help

2015-05-01 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: bit of python help Oh sorry, the french word is modulo and I thought it was the same word Hm I didnt programed in python for more than a year, but when you want to play a turn, you play it, and at the end of the loop, before updating the player index (to know that you are playing

Re: bit of python help

2015-05-01 Thread AudioGames . net Forum — Developers room : Kyleman123 via Audiogames-reflector
Re: bit of python help hmm, im assuming by modulo you mean module?i understand i think, but could you provide an example? URL: http://forum.audiogames.net/viewtopic.php?pid=214511#p214511 ___ Audiogames-reflector mailing list Audiogames

Re: bit of python help

2015-05-01 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: bit of python help Oh sorry, the french word is modulo and I thought it was the same word Hm I didnt programed in python for more than a year, but when you want to play a turn, you play it, and at the end of the loop, before updating the player index (to know that you are playing

Re: bit of python help

2015-05-01 Thread AudioGames . net Forum — Developers room : Genroa via Audiogames-reflector
Re: bit of python help Just a trick, instead of using a condition, you can use modulos You can also use players in a list, and ++ the index of this list for each turn, and again with a modulo to loop around it URL: http://forum.audiogames.net/viewtopic.php?pid=214509#p214509

bit of python help

2015-05-01 Thread AudioGames . net Forum — Developers room : Kyleman123 via Audiogames-reflector
bit of python help i am currently learning python. so as im getting fairly decent with it i thought it was time to start on a bit of a project. i am coding a monopoly game. this isnt really something i plan on releasing but if it turns out to be something really good, ill consider it.i

Re: bit of python help

2015-05-01 Thread AudioGames . net Forum — Developers room : dhruv via Audiogames-reflector
Re: bit of python help Hi,First, you might be able to catch it with a try: except clause, but there are probably better solutions out there.Second, could I please get the code? itll really help me learn python more. URL: http://forum.audiogames.net/viewtopic.php?pid=214483#p214483

Re: bit of python help

2015-05-01 Thread AudioGames . net Forum — Developers room : dhruv via Audiogames-reflector
Re: bit of python help Hi,First, you might be able to catch it with a try: except clause, but there are probably better solutions out there.Second, could I please get the code? itll really help me learn python mre. URL: http://forum.audiogames.net/viewtopic.php?pid=214483#p214483

Re: bit of python help

2015-05-01 Thread AudioGames . net Forum — Developers room : Kyleman123 via Audiogames-reflector
Re: bit of python help ive seen try statements around and i had to look up specifically what they were and stuff. ill see what i can do with that.ill probably will eventually post my code, but its in no state to be shown to anyone. at this point, its split into several different files

Re: bit of python help

2015-05-01 Thread AudioGames . net Forum — Developers room : Kyleman123 via Audiogames-reflector
Re: bit of python help well update time, it seems i am now able to loop around the board. yeah go me.a simple if conditional solved it. with a bit of math to manipulate the numbers a bit.but still dont really have a reliable way to switch players.im using an if block that if its player 1s