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.Data; | |
using UnityEngine; | |
public interface IItemManager | |
{ | |
void AddItemOnce(ItemData item); | |
void RemoveItemOnce(ItemData item); | |
void AddItem(ItemData item, int num); |
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
import tkinter as tk | |
from tkinter import messagebox | |
from functools import partial | |
import random | |
import sys | |
screenHeight = 390 | |
screenWidth = 390 | |
class Application(tk.Frame): |
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
import random | |
class Janken: | |
def __init__(self): | |
#相手の手 | |
self.opponent = self.getOpponent() | |
#プレイヤーの手 | |
self.player = self.getPlayer() | |
if self.judge(): |
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
import random | |
randomNum = random.randint(1,5) | |
if randomNum == 1: | |
print("小吉") | |
elif randomNum == 2: | |
print("中吉") | |
else: | |
print("大吉") |
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 rayCaster : MonoBehaviour | |
{ | |
[SerializeField, Range(5, 30)] | |
int raySize = 10; | |
public GameObject block; |
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 PerlinNoise : MonoBehaviour | |
{ | |
public GameObject player; | |
public GameObject parent; | |
public GameObject grass; | |
public GameObject stone; |
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
import os | |
import sys | |
import keyboard | |
from enum import auto,IntEnum | |
import random | |
#マルバツゲームクラス | |
class TicTacToe: | |
def __init__(self,size:int): | |
#盤面の大きさ |
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
import machine | |
from machine import Pin,I2C,ADC,SoftI2C,RTC | |
from ssd1306 import SSD1306_I2C | |
import framebuf | |
import utime | |
import random | |
WIDTH = 128 | |
HEIGHT = 64 |
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.Generic; | |
using System.IO; | |
using UnityEngine; | |
using UnityEngine.UI; | |
public class read : MonoBehaviour | |
{ | |
public bool debug_makeNotes; | |
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
#!/usr/bin/env python | |
# -*- conding: utf-8 -*- | |
import discord | |
from discord.ext import tasks | |
import asyncio | |
import lib_garden | |
import display | |
import time | |
import datetime | |
import subprocess |
NewerOlder