Skip to content

A classic Tug-of-War game using Twitter hashtags and Holiday by MooresCloud - as seen at PyConAU

Notifications You must be signed in to change notification settings

moorescloud/tugofwar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twug-of-war

The classic game of strength and skill - with all of the strength and skill removed.

Two twitter hashtags are pitted against one another. Which one will win?

Targets the Holiday by MooresCloud - either a real unit, or the simulator

To make this work without a Holiday, you'll need the following:

Clone or otherwise install both projects, then start them up as follows:

blah/blah/simpype% python simpype.py

/blah/blah/iotas% python iotas.py

Now you should be able to point a browser window at localhost:8888 and see the Holiday simulator running.

Now you need to start Twug-of-war.

Invoke with: python tow.py #hashtag1 #hashtag2 hostname:port

The program will attempt to log into Twitter using your Twitter credentials.
If you haven't used Twug-of-War before, you'll be directed to the OAuth authorization page for twitter. It will give you a seven-digit PIN, pop that in when asked, and you'll be good to go. Authorization should only need to be done once per account.

If you don't provide a hostname:port, the default IoTAS simulator value of 'localhost:8080' is used.

Good luck!

About

A classic Tug-of-War game using Twitter hashtags and Holiday by MooresCloud - as seen at PyConAU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages