/casio-calculator-python-scripts

Useful scripts and games for supported Casio calculators with Python in-built

Primary LanguagePython

Casio fx-CG50 python scripts

Overview

Various python scripts for Casio graphics calculators with Python functionality.

What's inside

Projectile game

A simple physics guessing game which the user aims a projectile onto a target. The target screen is shown for a few seconds followed by a prompt to input the energy in J. Depending on the level, the user may be able to adjust the mass and angle of the projectile as well. The user gets three attempts to correctly land the projectile on the target. There are three stages in levels one and two and level three is endless.

Possible Improvements

  • Make more levels (less attempts?)
  • Make game scroll so targets can be outside the screen
  • Optimise performance with multiple balls
  • Introduce score

Tic tac toe

Basic tic tac toe verus the computer. The screen shows the game board for a few seconds and prompts the user to enter the coordinates of their marker. This continues until either the computer or the player successfully place three markers in a row.

Possible Improvements

  • Make computer not choose marker postition randomly

Is prime

Optimised prime verification method using 6(k+i) verification method.


Heron

Area of a triangle calculator using side lengths calculated with Heron's formula. Enter side lengths seperated by commas and area will be printed out.


Acknoledgements

Created by Nasser Kessas

Contributing

PRs and new scripts accepted, feel free to add some of your own! Open an issue or submit PRs.

This repository follows the Contributor Covenant Code of Conduct.