Skip to content

πŸͺ¨πŸ“„βœ‚οΈ Rock Paper Scissors Simulator using Python's Tkinter and it's canvas widget

Notifications You must be signed in to change notification settings

nightmono/rock-paper-scissors-simulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸͺ¨πŸ“„βœ‚οΈ Rock Paper Scissors Simulator

Built using Python's Tkinter and it's canvas widget. Made this to hopefully practice and build more Tkinter canvas apps in the feature.

Gif of simulator

Configuration

You can configure the following by editing the constants at the start of the script:

  • The canvas width and height
  • Amount of pieces for each item
  • Delay between each game tick
  • Speed of pieces

These are the defaults:

CANVAS_WIDTH = 500
CANVAS_HEIGHT = 500
# Amount of pieces for each group.
PIECES = 50
# Delay must be an interger.
# 20ms delay is equal to 50 FPS.
DELAY = 20
# Speed of items.
SPEED = 2

You can change the pngs to whatever you like, just make sure they are named correctly.

About

πŸͺ¨πŸ“„βœ‚οΈ Rock Paper Scissors Simulator using Python's Tkinter and it's canvas widget

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages