-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
23 lines (19 loc) · 838 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
from GameScraper import GameScraper
from Scenario import Scenario
def _smallandfew(items):
return items["Size"] == "Small" and items["Number of Enemies"] == "Few"
def _levelover7000(items):
return items["Enemy LV"] > 7000 and items["Main Object"] == "Grass"
if __name__ == "__main__":
from Scenario import Scenario
import dolphininput
import time
smallandfew = Scenario(("Number of Enemies", "Size"), _smallandfew)
levelover7000 = Scenario(("Enemy LV", "Size", "Floor Number","Main Object", "Number of Enemies", "Main Enemy", "EXP"), _levelover7000)
gameScraper = GameScraper("randomdungeon", levelover7000)
for i in xrange(50):
gameScraper.scrape()
dolphininput.tap(dolphininput.B, .1)
time.sleep(.1)
dolphininput.tap(dolphininput.A, .1)
gameScraper.exit()