20. 난이도 분류
※난이도를 상/중/하로 분류※힌트 추가(글자 수, 연관 단어) -백엔드- model - const mongoose = require("mongoose");const Schema = mongoose.Schema;const gameSchema = new Schema({ _id: { type: String, required: true }, title: { type: String, require: true, unique: true }, image: { type: String, require: true }, level: { type: String, require: true }, //난이도 length: { type: String, require: true }, //힌트 hint: { type: St..
2024. 6. 14.
19. 종성 ' ' 제외, 쉼표(,) 추가
※낱말 조합 게임에서 받침이 없는 단어일 시 종성 ' ' 제외하고 랜덤 나열※각 낱말마다 쉼표(,)를 붙혀 구분, 마지막 낱말은 쉼표(,) 제외 Game - import axios from "axios";import React, { useCallback, useEffect, useState } from "react";import "../../css/game.css";import Canvas from "../../component/Canvas";import Typing from "../../component/Typing";import { CHO, JUNG, JONG } from "../../component/Word";import { useNavigate } from "react-router-dom";fu..
2024. 6. 7.