/Python-Assignments

Python exercises.

Primary LanguagePythonMIT LicenseMIT

Python-Assignments

Assignment 11

  • Snake: Simple snake in Python using Arcade library.

    snake

  • Complex loops: Draw red and blue diamond in Python using Arcade library.

    complex loops

Assignment 12

Silver Spacecraft

  • Silver Spacecraft in Python using Arcade library.
    • when bullet hit enemy spacecraft they will explode.
    • enemy will come between 2-6 sec randomly.
    • when enemy or list disappear from the screen their object will be remove.
    • show 3 heart in bottom left.
    • show score in bottom right.
    • show Game over when user lose all their health.
    • play sound when shooting.
    • play sound when enemy spacecraft explode.
  • space craft view

    Silver Spacecraft

Assignment 13

Assignment 14

  • T-rex runner
    • Jump over cacti
    • Bending in the face of birds
    • jump sound
    • Day and Night mode
    • Speed up the game over time
    • The current score is displayed next to the highest score
  • Trex view 1

    Screenshot (486)

  • Trex view 2

    Screenshot (492)

Assignment 15

Assignment 16

  • Calculator
  • Simple GUI calculator in Python using pyqt6
  • feautures:
    • + - * /
    • sin, cos, tan, cot
    • log, sqrt
  • view:

    calculator view

Assignment 17

Tik Tok Toe

  • Tik Tok Toe game in Python using PySide6.
  • features:
    • Single player(with AI) and two player
    • Scoreboard
    • About button
  • view:

    TikTokToe

Assignment 18

Sudoku

  • Sudoku game written in Python using Pyside6.
  • features:
    • check sudoku while you are playing it.
    • dark mode on/off
    • text align
    • error handling when data missing
    • make main numbers read-only
    • win check
  • views:

    sudoku1 sudoku2 sudoku3

Unit Converter

  • Simple GUI unit converter written in Python using Pyside and unit_converter.
  • features:
    • Support Length - Mass - Value - Temperature
  • view:

    unitConverter

Guess the number

  • A simple game written in Python using PySide6.
  • view:

    guessTheNumber

Password Generator

  • Password Generator app written in Python using PySide6.
  • features:
    • Three modes for generating passwords. weak, normal and unbreakable
  • view:

    passwordGenerator

Translator

  • Translator app written in Python using PySide6.
  • features:
    • Support En to Fa and Fa to en
  • views:

    Translator_fig1 Translator_fig2

Assignment 20

To-Do list

  • GUI to-do list written in python designed with pyqt and using sqlite database.
  • feautures:
    • Detail button with unique window.
    • Delete task.
    • Add new task.
    • Pin important tasks for higher priority.
    • Designed with 2 tabs for better user experience, all-tasks and Done tasks.
  • views:

    todolist1 todolist2 todolist3

AI Snake

  • A clever snake that can find the apple!
  • Written in python using arcade library.
  • view:

    AIsnake

Telegram Bot

  • a telegram bot written in python using py-telegrambot-api.
  • New feature:
    • added /note to bot commands.

Assignment 21

Checkered Board

  • Create a chess table using numpy and opencv.
  • view:
    • result_1

Color Correction

  • Reverse black and white colors with opencv.
  • views:
    • result_2_1
    • result_2_2

Rotate Image

  • Rotate an image with for loop in opencv(without cv2.rotate)
  • view:
    • result_3

Color Separation

  • Separate object of black-whte image using opencv and threshold method.
  • view:
    • result_4

Corner Line

  • Create a black line in top left corner.(without opencv built-in methods)
  • view:
    • result_5

Gradient

  • Create an image with whito-black gradient using open-cv and numpy.
  • view:
    • result_6

Letter B

  • Design letter B using numpy and open-cv.
  • view:
    • result_7