Giter VIP home page Giter VIP logo

pyrandom's Introduction

PyRandom

Random but interesting Python projects that sometimes seem like reinventing the wheel but are fun to implement.

1. Simple Spell Check [Devlopment Status: To be continued]

This is a modification of the A Small, Simple and Fast Spelling Checker which is one of a project in the Python for fun.

The basic implementation is the same as stated in the Python for fun but the for working it uses The Levenshtein Algorithm ~ 4min and uses Trees to calculate the distance.

Motivation was to learn Data Structure without muggin up books but by implementing real life project.

2. Ecosystem [Devlopment Status: Active]

Write a Python program to simulate an ecosystem containing bears and fish. The ecosystem consists of a river, which is modeled as a list. Each element should be a Bear object, a Fish object, or None. Animals have attributes gender and strength. In each time step, each animal randomly either moves to an adjacent tile or stays where it is. If a fish encounters a bear, the fish gets eaten. If two animals of the same type encounter each other, a new instance of that animal type is generated if they are the same gender. Otherwise, they fight and the one with larger strength survives.

This is a question from the book that I am currently reading Data Structures and Algorithms in Python by Michael H. Goldwasser, Michael T. Goodrich, and Roberto Tamassia.

It's a great mini-project for someone who wants to get a some insits on the OOP in Python.Plus this question has endless possiblities of features to be added as it simulates the real world.

pyrandom's People

Contributors

pradhvan avatar

Stargazers

Shubhankar Bisht avatar

Watchers

James Cloos avatar  avatar

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.