Coder Social home page Coder Social logo

tca-snake-2's Introduction

TCA-Snake-2

xcodebuild

This repository contains the source code for the macOS interpretition of the popular game Snake, built with SwiftUI and TCA.


About

Snake is a retro arcade-style game, built in almost every programming language in existance, it's history is similar to that of Pong. The whole application is powered by the Composable Architecture with a focus on composability, modularity, and testing.

Architecture

Snake.swift

Dependencies

  • HighScoreClient
    Acts a database, with a getter and setter method to interact with the stored data which is just for this projects purpose: the
    highscore. This, like the other dependencies, doesn't make any real world requests. Simply, this mimicks the structure of a potential RESTful API get and post request but instead of it being to a server, its just to UserDefaults. So yes, this is just a controlled dependency wrapper for local storage, but this makes it testable and composable!

  • CoordinateGenerator
    Represents a third party system with a failable task to generate a Coordinate inside of a player's game. This does not actually send a request outside of the system, it's a just to simulate a outside system request.

Tests

TCA_Snake_2_Tests.swift

tca-snake-2's People

Contributors

p-larson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.