zhengkyl / pixelgame

online n-in-a-row game

Home Page:https://pixelgame.kylezhe.ng

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pixelgame

Online m,n,k game, but for m == n <= 20

Inspired by https://github.com/fly-apps/tictac

AAAA Gameplay!

gameplay

New shapes, colors, and ruthless AI!

multiplayer with bots

Play classics or make your own rules!

customizable rules

Development

  • source .env.dev
  • mix setup
  • mix phx.server or iex -S mix phx.server

Browserslist: caniuse-lite is outdated.

  • Update Tailwind version in config/config.exs
  • mix tailwind.install

Local PostgreSQL Setup

See config/dev.exs for username, password, dbname. It should just work but see below in case.

Set postgres user password in case it changed

sudo -u postgres psql
\password postgres

If you want to setup a different user

sudo -u postgres createuser <username>
sudo -u postgres createdb <dbname>
sudo -u postgres psql
alter user <username> with encrypted password '<password>';
grant all privileges on database <dbname> to <username> ;

About

online n-in-a-row game

https://pixelgame.kylezhe.ng


Languages

Language:Elixir 87.0%Language:JavaScript 7.7%Language:HTML 3.2%Language:Dockerfile 1.6%Language:Shell 0.3%Language:CSS 0.1%Language:Batchfile 0.1%