
#Flappy Bird 학습 시키기] #보상 조건 1: Ceil (천장)에 닿지않게 높이를 유지한다 #보상조건 2: 바닥에 떨어지면 감점. 바닥과 천장 사이를 유지하며 점프 #보상조건 3: 파이프 사이를 통과해야한다 . 파이프 사이에 오브잭트를 두고 Score 테그를 지정하고 OnTriggerEnter2D 를 통해 그 사이를 통과하게 교육 private void OnTriggerEnter2D(Collider2D collision) { if (collision.gameObject.CompareTag("Score")) { this.AddReward(1); } } #셋팅(환경 셋팅) *Spwaner (Pipe 생성, 제거) using Newtonsoft.Json.Bson; using System.Collect..

*MLAgent 1단계 화면 클릭을 받으면 플레이어는 랜덤한 위치로, hp와 poision도 랜덤한 위치로 이동 2단계 휴리스틱으로 직접 조작하여 테스트 3단계 디폴트로 바꾼 후 교육 시작 *Setting *scripts (환경 셋팅) using System.Collections; using System.Collections.Generic; using TMPro; using UnityEngine; public class EnvArea : MonoBehaviour { public GameObject hpPotion; public GameObject posionPotion; private Listlist= new List(); private UnityChan chanAgent; public TMP_Text ..
# partial Partial (클래스 분할) https://learn.microsoft.com/ko-kr/dotnet/csharp/programming-guide/classes-and-structs/partial-classes-and-methods Partial 클래스 및 메서드 - C# 프로그래밍 가이드 C#의 Partial 클래스 및 메서드는 클래스, 구조체, 인터페이스 또는 메서드의 정의를 둘 이상의 소스 파일에 분할할 수 있습니다. learn.microsoft.com https://www.immersivelimit.com/tutorials/reinforcement-learning-penguins-part-4-unity-ml-agents Reinforcement Learning Penguins ..
https://www.immersivelimit.com/tutorials/reinforcement-learning-penguins-part-4-unity-ml-agents Reinforcement Learning Penguins (Part 4/4) | Unity ML-Agents — Immersive Limit www.immersivelimit.com https://immersivelimit.gumroad.com/l/TZNBD Penguin ML Agents Here you'll find free code and 3d meshes for the Penguin ML Agents tutorial.👉 $0+ on Gumroad means you can get these *completely for free* ..