Coder Social home page Coder Social logo

software-examples's Introduction

Software Example Projects

A collection of projects by Paige McKenzie, centered around expanding my software engineering skillset.

Table of Contents

Markov chains for text generation

Unbeatable Tic-tac-toe with Pygame

Programmed algorithm for unbeatable (win or, at worst, draw) tic-tac-toe. Implemented a CLI user interface and visual user interface using Pygame to allow a user to compete against the AI.

See my blog post describing the project.

Files:

+-- tictactoe
    --PlayCLI.py
    --PlayPygame.py
    --BaseGame.py
    +-- assets
        --o.jpg
        --tictactoe_background.jpg
        --x.jpg
        

Software: Python 3.6, relying on numpy. Pygame version 1.9.6 was used for PlayPygame.py.

Wrote adaptable program that accepts input text and uses Markov chains of various sizes to genreate text similar to the input corpus.

See my blog post describing the project.

Files:

+-- markov
    --generate_sentences.py

generate_sentences.py usage:

--filename FILENAME, -f FILENAME
                        Path to raw .txt file. If none is provided, defaults
                        to most recently-created dictionaries.
  --simulations SIMULATIONS, -s SIMULATIONS
                        the # of random sentences to build, defaults to 10
  --markovsize MARKOVSIZE, -m MARKOVSIZE
                        the # of tokens to consider when building sentences,
                        defaults to 2
  --randomseed RANDOMSEED, -r RANDOMSEED
                        the random seed to use when building sentences,
                        defaults to 1

Software: Python 3.6, relying on pandas, scikit-learn, re, and NLTK.

software-examples's People

Contributors

p-mckenzie avatar

Stargazers

Anubhav avatar

Watchers

James Cloos avatar  avatar

Forkers

joieaurum

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.