Skip to content

La20821/Project-1---Memory-Card-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Project-1---Memory-Flash-Card-Game

Initial Purpose

The purpose was to develop a working card game where the user is able to click on two cards to check if they are a match. If those two cards are a match, then they remain revealed until all cards are matched and revealed, at that point which the user wins the game. The bases behind this project game development was also to put lessons taught over the last week into play. I learned to be as resourceful as possible, learned to priorotize, and to maintain the focus of the end goal, a game with the neccessary functionality.

Getting Started

Wireframe

image

Brief Collaboration

As I'm sure you know, web development has a lot to do with collaboration. Although this was an individual assignment, it was important to have a brief conversation with someone more exprienced just to discuss the groundwork for project, layout, and whats most important to start with. Here is where it was confirmed to start on the basic coding and game logic before spending time and effort on the CSS. I know how tempting it can be to want to get your web page looking beautiful, but what good is a game that looks great, but has no functionality?

Starting Steps

  1. HTML I used my HTML file to get your boilerplate set as well as identified neccesary div classes and IDs that I could reference once I got ready to layout what was drafted in my wireframe.
  2. Initial CSS I, second, traveled to my CSS file where I used grid-styling to structure my div classes in an order that would serve as placeholders for my flash cards.
  3. Javascript Next, I began my javascript. I used DOM Manipulation to create any variables I thought I may need for game functionality. I then approached my code set up by creating various functions for actions/tasks that I wanted my game to perform. I added Event Listeners and created "if" conditional statements within my function to execute a task only when I wanted them to.

Technology Used

  • Visual Studio Code(HTML5, CSS3, and Javascript ES6)
  • Google stored images
  • Imgur Photo Sharing
  • Command Line Terminal
  • Google Chrome Web Browser & Developer Tools
  • Wireframe Design Tool

Game Win Logic

Player has 1 minute to match all cards by clicking each one. If player wins a match, cards stay flipped on the matched side. If players click two cards that aren't a match, both cards will flip back to back side. Player can continue to look for matches until all matches are found.

image

General Requirements Met

  1. Preload app with data.
  2. Let player click freely through cards.
  3. Mark if player gets a match.
  4. Re-display incorrectly matched cards until user gets them correct.

Bonus

  1. Track score(not over time)
  2. Include images on one or both sides
  3. Set Timer

Game Link

(file:///Users/lp20821/sei/projects/Project-1---Memory-Card-Game/index.html)

What's Next?

There's definitely room for opportunity for refactoring in my code. The main goal was get game working and I ran into a lot of issues where code segments would not work outside of my main Game function code. I would also like to add sound to each card. A rotation of 3 main sound effects. A click sound on each card, a sound when player gets a match, and a sound if the second clicked card is not a match. I also ran into some brick walls with my CSS as far as card styling, that would be something I revisit.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published