Coder Social home page Coder Social logo

gotris's Introduction

Gotris (v1.0)

An implementation of Tetris in Go following MVC design principles

Description

This is a simple text (and maybe GUI in the future)-based version of Tetris written in Go.

Personal Goals with this Project

  • Learn Go
  • Implement something that is close to being Tetris with some personal flair
  • Use the principles of MVC design to have multiple rendering options for the game. To start with, there will be a simple text debugging mode and then later there will be a fancier text mode and maybe a GUI.
  • Have fun
    • (And by "have fun" I mean I'm attempting to use reduce memory overhead by using compact data structures...so I can do some fancy bit twiddling).

Requirements

Go v1.13 is required as it supports binary literals. See this issue on GitHub for more info.

Dependencies

Go lacks a lot of old-school terminal control abilities (clear, getch(), etc) so this project uses a 3rd party, cross platform library used by a number of other text-based Go games, tcell.

To Install:

Automatic

make depend

Manual

go get "github.com/gdamore/tcell"

Build Intstructions

make

Usage

./bin/gotris [render mode]

Where [render mode] is one of these options:

text (Default Mode)

v1.0 Text Mode Screenshot

debug

v1.0 Debug Mode Screenshot

gotris's People

Contributors

schuylermartin45 avatar

Watchers

James Cloos avatar  avatar

gotris's Issues

Multi-line-clear glitch

There appears to be an issue that when multiple lines are cleared at once, one line remains full on the screen. Probably some off-by-one glitch. This will likely be fixed when the 32-bit-row implementation (full color mode) is complete.

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.