Skip to content

A connect4 client-server game using WebSockets and React.js

License

Notifications You must be signed in to change notification settings

codezri/connect4-websockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This repo contains the sample code for the article: Beyond REST: Using WebSockets for two-way communication in your React app

It implements a WebSockets client-server system that lets two people play connect4 against each other

This repository was forked from the the-gigi/connect4 original repository with the following updates:

  • All dependencies are up-to-date.
  • Updated the socket.io server with v4.x APIs.
  • Enable CORS for development purposes.

License and Copyrights

MIT - Copyright (c) 2018 Gigi Sayfan

Usage

run dev

This will run both the server and the client. It will also open one web browser on http://localhost:3000. This will the Red player. You need to open another tab (or browser) and go to http://localhost:3000 again. This will be the Yellow player and then the game can start with the players alternating turns until one wins.

About

A connect4 client-server game using WebSockets and React.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published