八月 15, 2011
» Sikuli Plays Angry Birds on Google Games

Franck Dernoncourt wrote a Sikuli Script for playing Angry Birds on Google Games.
The script is simple but efficient: it achieves high-scores that are very hard to beat. It tries different launching angles and beats Sergey Brin’s high-score on map 1-4 (36710 vs 29920).

The demo of this script can be seen on youtube.

The full script can be downloaded at here.
frameborder=”0″>

六月 17, 2009
» 測試貓 noscat - 但我從沒想養貓啊

最近程式塗著玩著,就生了一隻伯特與一隻貓。

bot 下次聊。丟出這隻貓先。

這隻貓名 noscat,喜歡盯著東西跑。

驅動它的方式是:

python noscat 'nosetests -w app/tests/lib' app/lib app/model ...

這會讓它有如下的反應:

它會先饋集 app/lib 及 app/model (你可以繼續增加) 下面的所有檔案,然後(在 shell 中)跑一次 'nosetests -w app/tests/lib' 這指令。

接著一旦它收集的檔案有所更動,它就會再跑一次那指令。

你可以從這裡下載這隻貓。

For test-driving, you always need a cat.

Update 2009-06-17: 修正所給的路徑並未被確實監視。加入忽略特定副檔名(如*.swp 及 *.pyc)功能。

biggo.com.tw

A Django site.