This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
/// <summary> | |
/// Manages spawning bots and market | |
/// </summary> | |
public class PandemicArea : MonoBehaviour | |
{ | |
[Tooltip("Range of the area")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
/// <summary> | |
/// Manages a single DummyBot who acts randomly on the environment. | |
/// </summary> | |
public class DummyBot : MonoBehaviour | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
/// <summary> | |
/// Manages spawning bots and market | |
/// </summary> | |
public class PandemicArea : MonoBehaviour | |
{ | |
[Tooltip("Range of the area")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Text; | |
using UnityEngine; | |
public class ExportCsv : MonoBehaviour | |
{ | |
public StringBuilder sb = new System.Text.StringBuilder(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void changeAgentStatus() | |
{ | |
switch (m_InfectionStatus) | |
{ | |
case agentStatus.HEALTHY: | |
GetComponentInChildren<Renderer>().material = healthyMaterial; | |
break; | |
case agentStatus.INFECTED: | |
GetComponentInChildren<Renderer>().material = infectiousMaterial; | |
pandemicAreaObj.GetComponent<PandemicArea>().healthyCounter--; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Jul 20 13:41:07 2020 | |
@author: Ege | |
""" | |
# Importing the libraries | |
import seaborn as sns | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using Unity.MLAgents; | |
using Unity.MLAgents.Sensors; | |
using UnityEngine; | |
/// <summary> | |
/// A Pandemic Simulation Machine Learning Agent | |
/// </summary> | |
public class PandemicAgent : Agent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Security.Cryptography; | |
using Unity.Barracuda; | |
using Unity.MLAgents; | |
using UnityEngine; | |
/// <summary> | |
/// Manages spawning bots and market | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class reward : MonoBehaviour | |
{ | |
private GameObject pandemicAreaObj; | |
//private bool isTaken = false; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", |
OlderNewer