addressalign-toparrow-leftarrow-rightbackbellblockcalendarcameraccwcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-checkcircle-with-crosscircle-with-pluscontroller-playcrossdots-three-verticaleditemptyheartexporteye-with-lineeyefacebookfolderfullheartglobe--smallglobegmailgooglegroupshelp-with-circleimageimagesinstagramFill 1launch-new-window--smalllight-bulblinklocation-pinm-swarmSearchmailmessagesminusmoremuplabelShape 3 + Rectangle 1ShapeoutlookpersonJoin Group on CardStartprice-ribbonprintShapeShapeShapeShapeImported LayersImported LayersImported Layersshieldstartickettrashtriangle-downtriangle-uptwitteruserwarningyahoo

new version of game posted

From: mike
Sent on: Wednesday, July 7, 2010 10:30 PM
i posted a new version of the game (zip file) from earlier today.­

Some UI changes and implemented polygon finding (in working towards
land capture feature)

-background is now the SAGE logo.

-after each turn, the webpage scrolls to the next player's home base

-finds a closed polygon according to our rules of 4-way neighbors only

-displays the string of coordinate pairs making up the polygon

-implemented using A*-search to find path of polygon using 4-way
neighbors of the cell currently clicked. The idea is: if there's a
path from one neighbor to the other without going through the
currently clicked cell then adding the clicked cell to the path makes
a closed loop. the logic for this is in the function findPath() in the
Board.js file.

-flood fill is VERY BUGGY though and at times seems to cause a stack
overflow (if it hangs, it likely crashes after a pause) i have it
disabled for now so that the game can be played without fear of
certain doom

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy