Patterns Game 1.5

Interactive on-site game threads go here

Postby TTHsieh » Mon Dec 10, 2007 12:53 am

Code: Select all
 . 1 . | . 2 . | 3 . .
 . . 4 | . . 3 | . 5 .
 . 6 . | . . . | . . 7
 - - - + - - - + - - -
 . . 5 | 8 . . | . 6 .
 . . . | 9 . . | . . 1
 . 8 . | . 1 2 | . . .
 - - - + - - - + - - -
 3 . . | . . 5 | . 1 .
 . . . | 7 . . | 5 . 6
 . . 2 | . . . | . . .   ER=5.2


TTHsieh
TTHsieh
 
Posts: 1390
Joined: 13 July 2007

Postby gsf » Mon Dec 10, 2007 4:42 am

Red Ed wrote:This is all eerily familiar ...
    The system goes on-line on August 4th, 1997. Human decisions are removed from strategic defense. Skynet begins to learn, at a geometric rate. It becomes self-aware at 2:14 am, eastern time, August 29th. In a panic, they try to pull the plug ...
Heed the lesson of Terminator, gsf, and stop coding now!

well Ed, in defiance of your warning, I hit return anyway, and my dns went dark
have you been coding too?
gsf
2014 Supporter
 
Posts: 7306
Joined: 21 September 2005
Location: NJ USA

Postby gsf » Mon Dec 10, 2007 6:54 am

Pat wrote:where's the g.r.emlin ??

the ip connection was up and down all day
and prudence demanded a step back to make sure it wasn't g.r.e.

the intention is to have updates every 10 entries or 2 hrs since the last entry
(all tunable)

also haven;t worked out noting explicit penalties (as in a post for each bad entry),
except in the status and final tallies

will also look at zulu/GMT vs EST -- some kind of off-by n, my bane
gsf
2014 Supporter
 
Posts: 7306
Joined: 21 September 2005
Location: NJ USA

Postby gsf » Mon Dec 10, 2007 6:58 am

would one of the players with a valid submission post a message with the next line
::: status :::
(a space between the word and the delimiters)
also, any player ready to say uncle should be able to resign, with no other entries this game, by
::: resign :::
gsf
2014 Supporter
 
Posts: 7306
Joined: 21 September 2005
Location: NJ USA

Postby TTHsieh » Mon Dec 10, 2007 9:22 am

I have other 2 new ratings.

TTHsieh
TTHsieh
 
Posts: 1390
Joined: 13 July 2007

Postby Red Ed » Mon Dec 10, 2007 9:29 am

gsf wrote:well Ed, in defiance of your warning, I hit return anyway, and my dns went dark
The matrix has you, gsf.
Red Ed
 
Posts: 633
Joined: 06 June 2005

Postby gsf » Mon Dec 10, 2007 10:53 am

TTHsieh wrote:I have other 2 new ratings.

I modelled the game as a state machine with state transitions controlled by time and valid entries
here are the states and the time until the next state
(the times are all parameterized in one place so suggested changes can be easily slipped in)
  • closed no current game, no entries, 8 hours until starting
  • starting start time announcement, 8 hours until open
  • open new game announcement with initial challenge
  • closing close time announcement, either 24 hours idle (no entries), or n-1 entraints for this game resigned
    if idle then 2 hours until closing, if resigned then immediate close
between closed and open the last entrant in the previous game may post
Code: Select all
    ::: more :::
    81-char-grid se-rating
    ...

to empty any cached entries -- presumably that player was the last entrant because all
other participants ran out of entries

immediately before the open post a final tally of the previous game will be posted
that final tally will also check for any edits -- during the game only the most recent
forum page is checked, the others are cached -- the final tally will refresh all pages for the game

of course at this point the open<=>closing=>closed=>starting=>open transitions
are theory awaiting practice -- each one will probably produce a glitch

under the hood: g.r.emlin is a continuously running program (unix shell script) that polls the forum via wget(1)
it gets back html and parses that to delineate its own control posts (the states above),
entry posts from participants, and the chaff
it also posts to the forum via wget(1)
that last part makes the coding delicate
improper logic on that feedback loop could wreak havoc on the forum

the hardest part to this type of programming, for me, is continuity through crashes
a crash might be the program stopping, or, like today, the www conection going dark

once we make it through a few hands off games I'll introduce a way for a forum user
to add a challenge between starting and open, first come first served
the tricky part there is that everyone will see the dealer's hand before the open

neat stuff
Last edited by gsf on Mon Dec 10, 2007 2:00 pm, edited 1 time in total.
gsf
2014 Supporter
 
Posts: 7306
Joined: 21 September 2005
Location: NJ USA

Postby Pat » Mon Dec 10, 2007 12:26 pm

::: status :::
User avatar
Pat
 
Posts: 4056
Joined: 18 July 2005

Postby Pat » Mon Dec 10, 2007 12:36 pm

    54 ratings have been posted --

    1.2 - 1.5 - 1.7
    2.0 - 2.3 - 2.5 - 2.6 - 2.8
    3.0 - 3.2 - 3.4 - 3.6 - 3.8
    4.0 - 4.2 - 4.4 - 4.5 - 4.6 - 4.7
    5.2 - 5.6 - 5.7 - 5.8
    6.2 - 6.5 - 6.6 - 6.6999... - 6.7 - 6.8 - 6.9
    7.0 - 7.1 - 7.2 - 7.3 - 7.4 - 7.5 - 7.6 - 7.7 - 7.8 - 7.9
    8.0 - 8.2 - 8.3 - 8.4 - 8.5 - 8.6 - 8.7 - 8.8 - 8.9
    9.0 - 9.1 - 9.2 - 9.3 - 9.5


    last rating posted on 2007.Dec.9 at 23:53 GMT
User avatar
Pat
 
Posts: 4056
Joined: 18 July 2005

Postby gsf » Mon Dec 10, 2007 12:38 pm

Pat wrote:
g.r.emlin wrote:
    game 0001 2007-12-09 11:44:00-0000 duration 0 dealer g.r.emlin index

you mean
    14:44 GMT

there are 3 time zones in play
zulu for the game posts
-0500 for the gsf login
-0800 for not-logged-in browsing

the status script assumed the default home time zone -0500
but it does wget without logging in
appending -0800 before translating from post => zulu fixed the problem
thanks
gsf
2014 Supporter
 
Posts: 7306
Joined: 21 September 2005
Location: NJ USA

Postby gsf » Mon Dec 10, 2007 12:50 pm

Pat wrote:54 ratings have been posted --

Pat, you have a sharp eye and memory for accounting
your ::: status ::: request didn't take because you didn't make an entry (or there's a bug)
here's a manual post of the all the ratings and entries that were recorded
g.r.emlin is not listed as a submitter but the initial challenge puzzle counts
it looks like the tie logic is not working, along with the 54 vs 50 discrepancy
edit: I found the entry parse problem and edited in the correct report

Code: Select all
game 0001 2007-12-09+14:44:00-0000 duration 9h09m dealer g.r.emlin index 0 (in progress)

.X..X.X....X..X.X..X......X..XX...X....X....X.X..XX...X....X.X....X..X.X..X......

      1.2    1.5    1.7    2.0    2.3    2.5    2.6    2.8    3.0    3.2
      3.4    3.6    3.8    4.0    4.2    4.4    4.5    4.6    4.7    5.2
      5.6    5.7    5.8    6.2    6.5    6.6    6.69   6.7    6.8    6.9
      7.0    7.1    7.2    7.3    7.4    7.5    7.6    7.7    7.8    7.9
      8.0    8.2    8.3    8.4    8.5    8.6    8.7    8.8    8.9    9.0
      9.1    9.2    9.3    9.5

       submitter  entries  score  response  notes
     -----------  -------  -----  --------  -----
           Eioru        1     12     1m59s
             Pat        3     21     6m19s  T
     m_b_metcalf        3    110     7m59s
         wintder        3    153    11m59s
             JPF       19    545     4m33s
         TTHsieh       24    747     6m59s  HL
     -----------  -------
               6       54

54 posted puzzles wrote:
010020300004005060070000008006900070000100002030048000500006040000800106008000000 # 28 1.2 JPF
010020300002003040050000006004700050000100003070068000300004090000600104006000000 # 4 1.5 TTHsieh
010020300002003040080000006004700030000600008070098000300004090000800104006000000 # 29 1.7 m_b_metcalf
010020300002003040050000006004200050000100007020087000300004080000600105006000000 # 6 2.0 TTHsieh
010020300002003040050000006004700050000100008070098000300004090000900804006000000 # 19 2.3 TTHsieh
010020300004003020050000006002700050000100008070098000300007090000600102007000000 # 37 2.5 TTHsieh
010020300002003040050000006004700050000100008070038000300005090000600104006000000 # 17 2.6 TTHsieh
010020300004001050060000007005400060000100002080092000300005090000700106007000000 # 21 2.8 TTHsieh
010020300003004050060000007005800060000100009080092000400005090000700106007000000 # 25 3.0 TTHsieh
010020300004003050050000006005700040000100002070082000300005090000600105006000000 # 31 3.2 JPF
010020300002003040050000006004700050000100008070068000300004060000500104009000000 # 23 3.4 TTHsieh
010020300002003040050000006004700050000100008070095000300004090000900104006000000 # 32 3.6 TTHsieh
010020300004005060070000008006300070000100002030092000900006040000800106008000000 # 34 3.8 JPF
080070100003002090060000004009500060000700005020041000100005020000200901004000000 # 48 4.0 m_b_metcalf
010020300002003040040000006004700050000600008070098000300005080000800104009000000 # 33 4.2 m_b_metcalf
020010700003008060010000003008600050000900004030021000400009080000500901007000000 # 12 4.4 Eioru
010020300003004050060000007005800060000100002080072000400005090000700104007000000 # 27 4.5 TTHsieh
010020300002003040050000006007800050000100004080094000300007090000400105006000000 # 36 4.6 JPF
010020300004003020050000006007600050000100002060072000300008070000900108009000000 # 47 4.7 TTHsieh
010020300004003050060000007005800060000900001080012000300005010000700506002000000 # 54 5.2 TTHsieh
010020300004003050020000006005700020000100008070098000300005090000900205006000000 # 35 5.6 TTHsieh
010020300004003020050000006007800050000100002080042000300007040000600807006000000 # 38 5.7 JPF
070050800005008020010000009008100050000200001090034000900002030000600107006000000 # 53 5.8 wintder
010020300004005060070000004006800070000900002050017000400006050000400906008000000 # 52 6.2 JPF
010020300004005060070000008006900080000100002090032000200006030000800105008000000 # 40 6.5 JPF
010020300002003040050000006004700050000100008070098000200004090000600704006000000 # 15 6.6 TTHsieh
010020300002003040050000006004700050000100008070068000300004090000800104006000000 # 13 6.69 TTHsieh
010020300004001050060000007005800070000900002080014000300005010000700905007000000 # 9 6.7 Pat
010020300004003020050000006002700050000800009070019000300002010000600805006000000 # 39 6.8 TTHsieh
010020300003004050060000007008900070000100002090082000200005080000700105007000000 # 42 6.9 JPF
010020300004003050020000006007800040000100005080095000300007090000600107006000000 # 41 7.0 TTHsieh
010020300002003040050000006004700080000100003070068000300004090000600104006000000 # 5 7.1 Pat
090020500004005010060000003001800060000900002080072000500001070000300901003000000 # 1 7.2 g.r.emlin
010020300004001050060000007005800060000100003080092000300005090000700102007000000 # 10 7.3 TTHsieh
010020300002003040050000006004700050000100008020098000700004090000600104006000000 # 30 7.4 TTHsieh
010020300003004050060000004005700060000100002070032000400005080000900105009000000 # 43 7.5 TTHsieh
010020300004003050060000007005800040000100002080092000600005090000700105002000000 # 24 7.6 JPF
010020300004003050060000007005100060000800002080092000300006090000700205007000000 # 22 7.7 JPF
010020300004005060070000008006900030000100002090042000500006040000800106008000000 # 20 7.8 JPF
010020300004003050060000007005200060000100008020048000300005090000700205009000000 # 44 7.9 JPF
070040800009005060060000003004100070000200006020034000100008090000600401007000000 # 51 8.0 wintder
010020300004003050060000007005200040000800001020091000300005090000700805007000000 # 18 8.2 JPF
010020300004001050060000007005200060000800009020019000300005010000700805007000000 # 2 8.3 TTHsieh
010020300004001050060000007005800060000900002080014000300005010000700905007000000 # 8 8.4 TTHsieh
010020300004003050060000007005800060000100002070092000400005090000700105007000000 # 7 8.5 Pat
010020300004005060050000004006700040000100002070082000300006080000900106009000000 # 26 8.6 JPF
010020300004003050020000006005700080000100002070098000800005090000600105006000000 # 45 8.7 TTHsieh
010020300004003050060000007005800040000100008080092000300005090000700605007000000 # 16 8.8 JPF
010020300004005060070000008006900040000100002090032000500006030000800906008000000 # 14 8.9 JPF
010020300004003050060000007005800060000100002070092000300005090000700105007000000 # 3 9.0 JPF
010020300002003040050000006004700050000600008070098000300004090000800104006000000 # 11 9.1 JPF
010020300004003050060000007005800060000100009080042000300005040000700908001000000 # 46 9.2 JPF
070060900006002030020000006003100040000200008050034000900003020000700105008000000 # 49 9.3 wintder
010020300004003050060000001005700060000800002070012000400005090000400805007000000 # 50 9.5 TTHsieh

Last edited by gsf on Mon Dec 10, 2007 9:24 am, edited 1 time in total.
gsf
2014 Supporter
 
Posts: 7306
Joined: 21 September 2005
Location: NJ USA

Postby Pat » Mon Dec 10, 2007 1:05 pm

gsf wrote:
your ::: status ::: request didn't take because you didn't make an entry (or there's a bug)


i posted the 7.1 8.5 6.7
all in the early part of the game
User avatar
Pat
 
Posts: 4056
Joined: 18 July 2005

Postby Pat » Mon Dec 10, 2007 1:07 pm

you're also missing Eioru
4.4
User avatar
Pat
 
Posts: 4056
Joined: 18 July 2005

Postby g.r.emlin » Mon Dec 10, 2007 1:14 pm

::: game 0001 status :::
Code: Select all
game 0001 2007-12-09 14:44:00-0000 duration 9h09m dealer g.r.emlin index 0 (in progress)

.X..X.X....X..X.X..X......X..XX...X....X....X.X..XX...X....X.X....X..X.X..X......

      1.2    1.5    1.7    2.0    2.3    2.5    2.6    2.8    3.0    3.2
      3.4    3.6    3.8    4.0    4.2    4.4    4.5    4.6    4.7    5.2
      5.6    5.7    5.8    6.2    6.5    6.6    6.69   6.7    6.8    6.9
      7.0    7.1    7.2    7.3    7.4    7.5    7.6    7.7    7.8    7.9
      8.0    8.2    8.3    8.4    8.5    8.6    8.7    8.8    8.9    9.0
      9.1    9.2    9.3    9.5

       submitter  entries  score  response  notes
     -----------  -------  -----  --------  -----
             Pat        3    -29     6m19s  P
           Eioru        1     12     1m59s
     m_b_metcalf        3    110     7m59s
         wintder        3    153    11m59s
             JPF       19    545     4m33s
         TTHsieh       24    747     6m59s  HL
     -----------  -------
               0       54
User avatar
g.r.emlin
Moderator
 
Posts: 11580
Joined: 07 December 2007
Location: www

Postby Pat » Mon Dec 10, 2007 1:32 pm

g.r.emlin wrote:
    Pat 3 -29 6m19s P

and why a penalty ?
User avatar
Pat
 
Posts: 4056
Joined: 18 July 2005

PreviousNext

Return to Interactive games

cron