Skip to content

Project #1 at GA's WDI course. Grid-based browser game built in JavaScript in a week.

Notifications You must be signed in to change notification settings

terezakinnert/ga-1-connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect 4

General Assembly's Web Development Immersive: Project 1

A two-player grid-based game rendered in the browser, made using HTML, CSS and JavaScript learnt in the first three weeks of the WDI course.
Play the game online

Table of Contents

Description

Brief

The project's requirements were as follows:

  • Render a game in the browser.
  • Switch turns between two players.
  • Design logic for winning & visually display which player won.
  • Include separate HTML / CSS / JavaScript files.
  • Use Javascript or jQuery for DOM manipulation.
  • Deploy your game online, using GitHub Pages.

Tools and Technologies Used

  • HTML5
  • CSS3, including animation
  • JavaScript
  • Git and GitHub
  • Google Fonts
  • Asana

Screenshots

Homepage Homepage

Game in progress game

First player wins game

Known Issues

Users unfortunately can't win diagonally, yet. The game's complexity wasn't fully clear to me until I reached the win logic part of coding. I had to re-plan and only include horizontal and vertical wins to the new MVP.

The user experience of the game could also be improved: instructions on a separate screen with a button to start the game, button to reset the game when it finishes, etc.

Challenges and Wins

We started this project two and a half weeks into our coding bootcamp, after only a little over a week of learning JavaScript. To get to a functioning game after that is a win enough for me. There were a lot of challenging moments, but that's what the learning process is like 🤓.

Future Work

If I had more time I would:

  • Add event listeners on the entire column, as opposed to the 'invisible' top row, to better guide the user.
  • Diagonal wins.
  • Reset game button.
  • Improve styling.
  • Add sounds effects with HTML5 audio.
  • Give users the option to choose from a few different token colours.
  • Subtle animation on the winning tokens at the end of the game.

Contact

Feel free to check out my Portfolio with more projects, or LinkedIn profile.

About

Project #1 at GA's WDI course. Grid-based browser game built in JavaScript in a week.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published