The session last night seemed to go fairly well. We decided to work on a generator of nontransitive dice ( https://en.wikipedia.org/wiki/Nontransitive_dice). Both groups began with writing generators for all possible dice given upper and lower bounds and fixed number of dice and sides. As such much time was spent on getting (re)acquainted with itertools.
In the pub afterwards a piece of code, I think written in matlab, was mentioned which cycled through all possible RGB colours and displayed them in an image. Apparently this code took 30 minutes to run. I was curious to see how long it would take in python so on the train home I wrote a snippet of code to check (https://gist.github.com/2049532). On my laptop it never takes more than 30 seconds. Less than half the people there yesterday were also there for the last coding session so we didn't continue with the noughts and crosses bots. I had revisited the code yesterday afternoon and adjusted the interface on the bot I had been involved in writing to match the runner. I then fixed some further bugs in our bot on the train home. Currently both bots work and can't be beaten by their opponent. I suspect a more skilled opponent could out-fox both bots though. It's interesting that they're so closely matched. I've sent a pull request with my changes ( https://bitbucket.org/safehammad/dojo-oxo/pull-request/1/it-works) On 15 March 2012 17:55, Dave Hughes <[email protected]> wrote: > On 15/03/12 07:43, [email protected] wrote: > >> * When: Tonight Thursday 15th March @ 7pm. >> >> * Where: MadLab, Manchester >> - URL: http://madlab.org.uk/ >> - Address: 36-40 Edge Street, Manchester, M4 1HN in the Norther >> Quarter (just opposite Common Bar/Cafe/Restaurant). >> - Map: http://bit.ly/hgTNln >> >> Sadly it's looking unlikely that I'll be able to make it tonight, but >> have a great time! >> > > Many apologies, but I'm unable to make this evening either (sorry for the > last minute realization!). Hopefully with my better half back next time, > I'll be better organized! > > Have fun! > > Dave. > > > -- > To post: > python-north-west@**googlegroups.com<[email protected]> > To unsubscribe: > python-north-west-unsubscribe@**googlegroups.com<[email protected]> > Feeds: > http://groups.google.com/**group/python-north-west/feeds<http://groups.google.com/group/python-north-west/feeds> > More options: > http://groups.google.com/**group/python-north-west<http://groups.google.com/group/python-north-west> > -- To post: [email protected] To unsubscribe: [email protected] Feeds: http://groups.google.com/group/python-north-west/feeds More options: http://groups.google.com/group/python-north-west
