Code Monkey home page Code Monkey logo

css-ttt's Introduction

HTML + CSS 틱택토를 만들어보자 (SVG)

🙃 미션

틱택토는 3x3 크기의 게임판에서 하는 3목 게임입니다.
두 명이 번갈아가며 o와 x를 게임판의 빈 칸에 쓰되, 먼저 같은 글자를 가로, 세로 혹은 대각선으로 3개 쓰이도록 하는 쪽이 이깁니다. 예를 들어, 다음 게임판은 x가 이긴 게임판입니다.

image

1. UI 작업

  • 틱택토 판을 만든다. (3x3)
  • 유저는 각각 X, O로 표시한다.
  • 현재 유저가 틱택토 판의 상단 부분에 표시된다.
  • 한줄을 연결하면 일직선으로 빨간색 라인이 그려진다.

2. 기능

  • 각 칸 체크시 현재 유저의 표시로 채워지고, 이미 표시된 칸은 체크할 수 없다.
  • 유저별로 한턴씩 진행한다.
  • 한줄을 연결하면 해당 유저가 승리한다.
  • 두 유저 모두 한줄을 연결하지 못할 경우 무승부이다.

3. 애니메이션

틱택토 판을 제외한 모든 요소(유저 표시, 빨간색 라인)는 animation되어 들어간다. (pen animation)

image

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.