Code Monkey home page Code Monkey logo

lairuwu_jssample's Introduction

LairuWu_JSsample

A code sample of JavaScript from Lairu Wu

COMP2401a3

Author: Lairu Wu Student Number: 100999645 Operating System: Windows Purpose: A card filp game Source Files: a3Server.js and files in /public_html

(make sure you have a node environment) How to use the program:

  1. Use cmd to get into the directory of COMP2406a3

  2. Enter "node a3Server.js" to activate the server

  3. The server is hosted on port 2406, so you can get to the homepage via the following request: http://localhost:2406/ (If an invalid url is entered, it will show a 404 not found page)

  4. The page will prompt you to enter the name of player, or enter nothing to get a assigned default name

  5. There will be a gameboard that consists of 16 face down cards, you have to match cards in pairs according to numbers on them,

  6. You have to match all correct pairs to win, when the game is cleared, the page will show how many times you have attempted

  7. The difficulty: side lengths of the board will keep increasing after you clear the game until you refresh the page and use another player name

lairuwu_jssample's People

Watchers

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