Code Monkey home page Code Monkey logo

sudoku's Introduction

Sudoku

Interactive Sudoku game and step-by-step solver to demonstrate principles of OOP (inheritance, polymorphism, testing, etc)

Contents Start Instructions Gameplay Testing

Start

  1. Install SDL2 framework
  2. Get a font (.ttf file)
  3. Run with ./run.sh and you will find a few options
  4. Fun options include
    1. ./run.sh -type cp
    2. ./run.sh -type vp
    3. ./run.sh -type vcp -walkthrough y
    4. ./run.sh -type vcp -file puzzles/input3.txt -autosave y (pretty pictures)
    5. ./run.sh -type vcp -autosave y (pretty pictures with test players)
  5. After you compile once, feel free to comment it out in run.sh

Instructions

  1. Use Player class to play text-based
    1. create your own board
    2. Load a text file
  2. Use VisualPlayer class to play visual version - this includes helping numbers!!!
    1. Press 'space' to add helping number
    2. Press 'a' to add all available helping numbers (very helpful for technique)
    3. Double-click a helping number to remove it
    4. Press 'c' to clear all helping numbers
  3. Use CompPlayer class to solve a puzzle text-based (techniques are currently incomplete)
    1. Use walkThrough option to click through step-by-step solution
    2. autoSave option provides nice text file summary
  4. VisualCompPlayer class to solve a puzzle visually
    1. Use walkThrough option to click through step-by-step solution
    2. autoSave option provides nice image summary

Gameplay

Helping Numbers

Testing

  1. Get Catch2 header file
  2. ./run.sh test

sudoku's People

Contributors

cihar29 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.