1. LeetCode 풀이 https://sfida.tistory.com/85 [Dart] 104. Maximum Depth of Binary Tree1. 문제https://leetcode.com/problems/maximum-depth-of-binary-tree/description/?envType=study-plan-v2&envId=leetcode-75 2. 요구사항1) 이진 트리의 루트 노드가 주어졌을 때, 이 트리의 최대 깊이를 구한다. 3. 핵심 아sfida.tistory.com 2. 개인 과제 제출 https://github.com/Meezzi/console-rpg-game GitHub - Meezzi/console-rpg-gameContribute to Meezzi/console-r..
1. 개요RPG 콘솔 게임 프로젝트를 진행하면서 오류가 발생했던 상황과 고민했던 부분에 대해 서술했습니다. 2. 트러블 슈팅1) Monster 객체 생성 문제 먼저 Monster 클래스의 속성과 생성자에 대해 설명하겠습니다.class Monster { String name; int health; int attack = 0; int defense = 0; Monster(this.name, this.health, this.maxAttack);} Monster 객체를 생성하려면 이름, 체력, 공격력이 필요하며,이 데이터는 외부 파일 데이터에서 가져오게 됩니다. 이를 위해 파일에서 몬스터의 데이터를 불러오는 loadMonsterStatsAsync 함수를 새로 생성하였습니다. 이 파일은 monsters..