GithubHelp home page GithubHelp logo

project_monopoly's Introduction

Hi there

I'm Rodrigo Kimura

๐Ÿชช Professional software developer, non-professional software enthusiast, lifelong learner coffee drinker โ˜•

๐Ÿ”ญ Iโ€™m currently working on tools to make my life/workflow easier
๐ŸŒฑ Iโ€™m currently learning about microcontrollers for a custom keyboard
๐Ÿ’ฌ Ask me about python or coffee
โšก Fun fact: I tattooed a few of my own tattoos
๐Ÿ“ Based in ๐Ÿ‡ง๐Ÿ‡ท

LinkedIn

Things I code with

Python JavaScript Kotlin Dart PHP

HTML5 CSS3

Git Docker Kubernetes Grafana

Visual Studio Code Android Studio Linux Ubuntu Android Arduino

project_monopoly's People

Contributors

rodrigokimura avatar

Stargazers

 avatar

Watchers

 avatar

project_monopoly's Issues

Remove unnecessary list attr

Currently the Game has two instance attributes that are list of players. Both are defined at the beginning of this class life cycle, but only really used to hold the original order of the players to use as tiebreaker and therefore useful only at the end of this class life cycle. Which means that, for the majority of this class life cycle, a unnecessary amount of memory is kept on hold.
Instead, we can clone the players list just before sorting by amount to use the tiebreaker.

Observer pattern

The Game class already has an aggregation relation to the Player class. It also has callback methods to event-like contexts, eg: on_player_bankrupt and on_player_round_completion. Those points indicate the observer pattern to be a strong candidate to refactoring Game-Player interactions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.