Differences between revisions 6 and 8 (spanning 2 versions)
Revision 6 as of 2012-05-09 02:31:59
Size: 5504
Editor: jason
Comment:
Revision 8 as of 2012-05-09 02:52:56
Size: 5517
Editor: jason
Comment:
Deletions are marked like this. Additions are marked like this.
Line 80: Line 80:
        queens.remove(queen)         if queen in queens:
    
queens.remove(queen)
Line 100: Line 101:
    show(matrix_plot(board, cmap='Oranges' ))
    show(matrix_plot(board, cmap='Oranges' ))
Line 133: Line 133:
}}}
{{{#!sagecell

Sage Interactions - Games and Diversions

goto interact main page

Zeros

Have you ever wished you could count the number of zero digits in a long number like Rainman?

by William Stein and Sequoia Lefthand

zeros.png

Queens on board

An interaction to play with the problem of placing eight queens on a board so that they do not threaten each other. This interaction exemplifies the use of persistent data, and the auto_update=False option coded by mhansen and included in sage 3.3. by Pablo Angulo

queens.png

Nim

Play nim against a perfect opponent. This interaction exemplifies the use of persistent data, and the auto_update=False option coded by mhansen and included in sage 3.3. by Pablo Angulo

nim.png

interact/games (last edited 2020-06-02 22:07:41 by kcrisman)