tictactoe script - commented - may have pedagogical value

Chris Angelico rosuav at gmail.com
Wed Sep 6 13:56:42 EDT 2017


On Thu, Sep 7, 2017 at 3:53 AM, Rhodri James <rhodri at kynesim.co.uk> wrote:
> On 06/09/17 18:16, Stefan Ram wrote:
>>
>> Dennis Lee Bieber <wlfraed at ix.netcom.com> writes:
>>>
>>>         Not to mention there are four rotations of the board, along with
>>> reflections... One could, internally, keep track of the rotation needed
>>> to
>>> normalize the first moves (eg: if a corner was the first move, rotate the
>>> board as needed to make that corner the top-left; evaluate all moves from
>>> there, and "de-rotate" the response).
>>
>>
>>    Whenever someone yells at me, »HTML is not a programming language!«,
>>    I show them the interactive tic-tac-toe by Flo Kreidler, written in
>>    pure HTML:
>>
>>
>> web.archive.org/web/20040428174214/http://www.geocities.com/flo_kreidler/tictactoe.html
>
>
> Presumably they stop taking you seriously at that point?

Yes, in the same way that people stopped taking me seriously when I
implemented Fizz Buzz in CSS.

Though they were rather amused...

ChrisA



More information about the Python-list mailing list