Coder Social home page Coder Social logo

colinbate / connect-four Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 2.0 101 KB

A simple implementation of Connect Four written in Svelte.

Home Page: https://connect.bate.dev

JavaScript 18.70% HTML 3.99% Svelte 59.26% TypeScript 18.06%
svelte tailwindcss typescript game sveltejs bate-dev

connect-four's Introduction

Simple Connect Four Game

A basic implementation in Svelte with TypeScript and Tailwind CSS.

The game is available online at https://connect.bate.dev

You can watch a video of it being written at https://www.youtube.com/watch?v=jqCHDA0xHWI

Get started locally

Clone and install the dependencies...

git clone https://github.com/colinbate/connect-four
cd connect-four
npm install

...then start the dev server

npm run dev

Navigate to localhost:8080. You should see the game running. You can then make any edits in component files in src, save it, and the app should reload.

By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the sirv commands in package.json to include the option --host 0.0.0.0.

Building and running in production mode

To create an optimised version of the app:

npm run build

You can run the newly built app with npm run start. This uses sirv, which is included in your package.json's dependencies so that the app will work when you deploy to platforms like Heroku.

connect-four's People

Contributors

colinbate avatar

Stargazers

 avatar Barnacled avatar Dhanush R avatar Siddhesh Zantye avatar

Watchers

James Cloos avatar  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.