forked from: Tic-tac-toe
352->319
300切りたい
/**
* Copyright shohei909 ( http://wonderfl.net/user/shohei909 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/75o9
*/
// forked from bkzen's Tic-tac-toe
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
with(graphics)for(i=9,b=[],scaleX=scaleY=100,r=drawRect,f=beginFill;i--;)r(i%3,i/3|f(lineStyle(a=0),0),1,1);stage.addEventListener("click",function():*{with(x)((b[a]|b[a^1])>>(i=mouseX+(mouseY|0)*3|0)&1)||(c=~(b[a]|=1<<i),f(255<<a*8),c&7&&c&56&&c&448&&c&73&&c&146&&c&292&&c&84&&c&273?r(i%3,i/3|0,1,1):r(0,0,3,3),a^=1)})
}
}
}