Giter Site home page Giter Site logo

sarabjits / chess-openings Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 3.18 MB

Learning chess openings should not be too hard! Check out the most popular and some amusing openings.

Home Page: https://sarabjits.github.io/Chess-Openings/

License: MIT License

HTML 24.63% CSS 29.05% JavaScript 46.32%
bootstrap chess css grid javascript-game openings

chess-openings's Introduction

Hi ๐Ÿ‘‹, I'm Sarabjit Singh

A passionate developer from St. John's, NL

sarabjits

  • ๐Ÿ”ญ Iโ€™m currently working on Freelance projects

  • ๐ŸŒฑ Iโ€™m currently learning React

  • ๐Ÿ“ซ How to reach me [email protected]

Connect with me:

https://www.linkedin.com/in/sarabjit-singh-97b84012/

Languages and Tools:

bootstrap css3 html5 java javascript react

sarabjits

chess-openings's People

Contributors

sarabjits avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

etiabasi

chess-openings's Issues

Implement 1st move set

Here's a template to use for move sets

// In english: H7 goes to 0rem, 6.5rem (1 down)
const moveSet = [["h7", "0rem, 6.5rem"]];

// This should be parameterized based on what part of the set you're in
const square = document.querySelector(`.sq-${moveSet[0][0]} > img);
square.style = `transform: translate(${moveSet[0][1]})`;

Optional: Pretty CSS!

.sq img {
  transition: transform 0.25s ease
}
  • Fill out the first moveset
  • Fire movement JS code on the next button
  • STRETCH GOAL: Have it advance in the array when you keep clicking that button

Adjust `.board`

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
-  margin: 0;
-  padding: 0;
  justify-content: center;
+  margin: 1rem 0 0 0;
  padding: 0.5rem;
}

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.