Skip to content
This repository was archived by the owner on Dec 6, 2024. It is now read-only.

Development Cheatsheet

glennpck edited this page Nov 7, 2021 · 2 revisions

Unit Testing Python Integration Tutorial

Python Code Structuring Guideline

Splitting Python Script into multiple files and importing

Floor Plan

Main Menu - Some random logic that will be decided along the way

MAIN LOGIC: ALL WRITTEN INTO EXCEL UPON SAVING GAME:

Count of remaining Buildings -Beach: Quantity e.g.: 7 -Factory: Quantity e.g.: 6 -House: Quanity -Shop: Quantity -Highway: Quantity (Read CSV)

Progress of Player's game -List for each row (4 slots, whenever building assigned = object stored in list) -e.g. row1 = ["", "", BeachObject, ""] row2 = ["", "", FactoryObject, Shop] etc.... (Subjected to change) *OTHER POSSIBLE IDEA: Nested list for whole grid (Read CSV) [Each row's objects separated into 4 columns in excel sheet (Total 4 rows)]

Building Object -Written in separate python files (Probably called "Building.py" <---- Abstract Class) -Contains calculation logic for the building type -Process: Pass in parameters such as player's total score and building type Calculate total score according to building type's logic

Unit Testing

Clone this wiki locally