Giter VIP home page Giter VIP logo

cinqmarsmedia / lazy-chess-an-indie-chess-puzzle-game Goto Github PK

View Code? Open in Web Editor NEW
21.0 3.0 3.0 11.53 MB

An indie chess puzzle game with innovative mechanics, designed to help engage new players and self-conscious enthusiasts.

Home Page: https://cinqmarsmedia.com/lazychess

License: GNU General Public License v3.0

TypeScript 79.07% HTML 2.46% SCSS 1.31% JavaScript 14.42% CSS 0.09% Rich Text Format 2.65%
chess ionic firebase indiegame chess-game

lazy-chess-an-indie-chess-puzzle-game's Introduction

Lazy-Chess-An-Indie-Chess-Puzzle-Game

Another non-profit game by the creator of The Devil's Calculator and Synonymy. Open source under the GPLv3 license like all our projects. The project was built in Ionic 3 and should compile out of the box, though if you wish to integrate firebase, you'll need to generate your own credentials and put them in constants.ts. We'd love to hear from you with your ideas on the project, so shoot us an email anytime at [email protected] or open up an issue if you're having any trouble running the code.

Lazy Chess is made by @cinqmarsmedia a volunteer run 501(c)3 non-profit. No members of the organization are paid a salary, and all proceeds go toward funding expenses for our educational and humanitarian projects. For more info, check out cinqmarsmedia.org.

Lazy Chess was just soft released a week or so ago awaiting feedback. We're in the midst of adding continuous integration in this project as well as our others so apologies for the current state of our code, we will have better documentation and cleaner, organized code pushed shortly. With our new system, our private repos will auto push with redacted sensitive info to our public repos.

Shout out and special thanks to the following libraries that are integrated in the project:

Official Site - For gameplay instructions, check out the User Guide.

Build Instructions

  1. Download the code, cd into the directory, and do "npm ci".
  2. Run the project using the command "ionic serve".
  3. Open up a browser to localhost:8000 (where ionic serve defaults to)
  4. Any breaking issues you might encounter later are likely because of firebase or other credentials that have been removed. Make a firebase account and enter your information in fbConfig under constants.ts and re-add "public db: AngularFireDatabase" in the constructor in home.ts along with what refrences you want to integrate.

I will continue to document this further as soon as I get the chance, please email us at cinqmarsmedia.org with any questions or feel free to open up issues and I'll get to them asap. Thanks!

lazy-chess-an-indie-chess-puzzle-game's People

Contributors

ccj242 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

lazy-chess-an-indie-chess-puzzle-game's Issues

Property 'db' does not exist on type 'HomePage'.

Hi,

the current 666773d

fail for me after clone and ci:

vitex@exiv:~/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game$ npm ci
npm WARN prepare removing existing node_modules/ before installation

> [email protected] install /home/vitex/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game/node_modules/fsevents
> node install.js


Skipping 'fsevents' build as platform linux is not supported

> [email protected] postinstall /home/vitex/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game/node_modules/ng2-chessboard/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: 
> https://opencollective.com/core-js 
> https://www.patreon.com/zloirock 

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)


> [email protected] postinstall /home/vitex/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"


> [email protected] postinstall /home/vitex/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game/node_modules/electron
> node install.js


> [email protected] postinstall /home/vitex/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js


> [email protected] install /home/vitex/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game/node_modules/node-sass
> node scripts/install.js

Cached binary found at /home/vitex/.npm/_cacache/node-sass/4.14.1/linux-x64-64_binding.node

> [email protected] postinstall /home/vitex/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game/node_modules/node-sass
> node scripts/build.js

Binary found at /home/vitex/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game/node_modules/node-sass/vendor/linux-x64-64/binding.node
Testing binary
Binary is fine

> [email protected] postinstall /home/vitex/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game
> npx patch-package

npx: nainstalováno 50 za 4.689s
patch-package 6.4.7
Applying patches...
@angular/[email protected][email protected] ✔
added 1185 packages in 31.661s

Run:

vitex@exiv:~/Projects/Packaging/Games/Lazy-Chess-An-Indie-Chess-Puzzle-Game$ ionic serve
> ionic-app-scripts serve --address localhost --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[app-scripts] [14:39:07]  ionic-app-scripts 3.2.3 
[app-scripts] [14:39:07]  watch started ... 
[app-scripts] [14:39:07]  build dev started ... 
[app-scripts] [14:39:08]  clean started ... 
[app-scripts] [14:39:08]  clean finished in 4 ms 
[app-scripts] [14:39:08]  copy started ... 
[app-scripts] [14:39:09]  deeplinks started ... 
[app-scripts] [14:39:09]  deeplinks finished in 472 ms 
[app-scripts] [14:39:09]  transpile started ... 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 487 
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]      L486:    this._queueSub.unsubscribe();
[app-scripts]      L487:    this.db.list("/queue").remove();
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 1445 
[app-scripts]     L1444:  if (this._fbSubGame) {
[app-scripts]     L1445:    this.db.list(this.gameType).push("QUIT");
[app-scripts]     L1446:    //this.db.list(this.gameType).remove(); // delete
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 1968 
[app-scripts]     L1967:  handler: (data) => {
[app-scripts]     L1968:    this.db.list(this.gameType).remove();
[app-scripts]     L1969:    this._fbSubGame.unsubscribe();
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]     L2034:  // confirm game for player two
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2035 
[app-scripts]     L2035:  this.db.list(this.gameType).push("confirmed");
[app-scripts]     L2036:  this.whiteBottom = false;
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2172 
[app-scripts]     L2171:  if (wait) {
[app-scripts]     L2172:    this.db.list(this.gameType).push("wait");
[app-scripts]     L2173:  } else {
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]     L2184:      this._fbSubGame = this.db
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2184 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2222 
[app-scripts]     L2185:        .list(this.gameType)
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]     L2221:    this._queueSub.unsubscribe();
[app-scripts]     L2222:    this.db.list("/queue").remove();
[app-scripts]     L2223:  },
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2228 
[app-scripts]     L2228:      this._queueSub = this.db
[app-scripts]     L2229:        .list("/queue")
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2239 
[app-scripts]     L2238:    console.log("pushqueue");
[app-scripts]     L2239:    this.db.list("/queue").push([code, now]);
[app-scripts]     L2240:  } else if (data[0][0] !== code && data.length == 1) {
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]     L2244:    //120000// || data[0][0].includes(this.username) prevent matching with yourself
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2245 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2247 
[app-scripts]     L2245:    this.db.list("/queue").remove();
[app-scripts]     L2246:  } else {
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]     L2246:  } else {
[app-scripts]     L2247:    this.db.list("/queue").push("ok");
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2255 
[app-scripts]     L2254:  this._queueSub.unsubscribe();
[app-scripts]     L2255:  this.db.list("/queue").remove();
[app-scripts]     L2256:  //console.log("startinnnn");
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2268 
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]     L2267:  //this._queueSub.unsubscribe();
[app-scripts]     L2268:  this.db.list("/queue").remove();
[app-scripts]     L2269:  //console.log("AHHHHH");
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]     L2353:  if (!won && !draw) {
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2354 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2371 
[app-scripts]     L2354:    this.db.list(this.gameType).push("checkmated:" + myrank);
[app-scripts]     L2355:    console.log("I got checkmated");
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]     L2370:              handler: (data) => {
[app-scripts]     L2371:                this.db.list(this.gameType).push("NOREMATCH");
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2381 
[app-scripts]     L2380:  handler: (data) => {
[app-scripts]     L2381:    this.db.list(this.gameType).push("REMATCH");
[app-scripts]     L2382:    this.awaitingRematch = true;
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts]     L2390:  handler: (data) => {
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 2391 
[app-scripts]     L2391:    this.db.list(this.gameType).push("NOREMATCH");
[app-scripts]     L2392:    this._fbSubGame.unsubscribe();
[app-scripts]             Property 'db' does not exist on type 'HomePage'. 
[app-scripts] [14:39:17]  typescript: src/pages/home/home.ts, line: 3122 
[app-scripts]     L3122:        this.db.list(this.gameType).push(moveObj);

[INFO] Development server running!
       
       Local: http://localhost:8100
       
       Use Ctrl+C to quit this process

[INFO] Browser window opened to http://localhost:8100!

[app-scripts] [14:39:17]  copy finished in 9.04 s 
[app-scripts] [14:39:17]  watch ready in 9.50 s 

Cold you please tell me what is wrong ?

Thank you

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.