CSCI 1100: Graphical Bots
Middlebury College,
Winter 2012
Frank Swenton
Course Information: Syllabus
Nokia's QT API: Windows offline installer (1.6gb) is available here.
Assignments
Flash games from class
- BoxClicker, versions: 1 2 3
- Memory, versions 1 and 2 (memory in motion)
Utility code
- InputSender class for generating mouse and keyboard events
- ScreenReader class (Windows only) for capturing screen data
Examples from class
- The sensational and amazing Two Buttons project, which included creating a GUI application in Qt, widgets and layouts, and signals and slots.
- The Snapshot project:
- First version, which used a few more widgets and more advanced layout and positioning, QGraphicsScene/View, derivation, and event handling.
- Second version, which fixed up the zoom, moved information control to MainWindow, and introduced QImage, QLabel, and keyboard events.
- Third version, adding a ruler, loading and saving of images, and crude zooming on the main view.
- Sample BoxClicker bots, for versions 1, 2 and 3 of the game.
- Template of a possible coding for a Memory (1/2) bot.
Assignment 1 (due 5:00pm on Week 1, Thursday)
- Add cursor position to information pane and a slider to control the zoom ratio in the Snapshot project.
Assignment 2 (due 5:00pm on Week 2, Monday)
- Add information to the Snapshot project giving the ruler's length, angle, Δx, and Δy to the information pane.
- Extend and optimize the BoxClicker bot, including detection of the game window, only grabbing the relevant rectangle of the desktop, more efficient processing and timing (play around and try some things; this is our starting point for more complicated bots!).