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
# Default ignored files | |
/shelf/ | |
/workspace.xml |
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
# Default ignored files | |
/shelf/ | |
/workspace.xml |
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
# Default ignored files | |
/shelf/ | |
/workspace.xml |
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
# Default ignored files | |
/shelf/ | |
/workspace.xml |
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
namespace MainModule | |
{ | |
class Program | |
{ | |
public static void Main(string[] args) | |
{ | |
bool run = true; | |
while (run == true) | |
{ | |
Orcs orc = new Orcs(); |
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
class Zarlar | |
{ | |
// Zar atma metodları | |
public int birdAltı() | |
{ | |
Random zarJenerator = new Random(); | |
int zar1 = zarJenerator.Next(1, 7); | |
return zar1; | |
} | |
public int ikidAltı() |
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.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Inheritance | |
{ | |
class Program | |
{ |
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.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace Methods___Metodlar | |
{ | |
class Program | |
{ |
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
# Bir Pygame oyunu yapmak için başlangıç teması veya iskeleti bu şekilde | |
import pygame | |
import random | |
# Önceden renk kodlarını verebilirsin istersen yardımcı olur | |
white = (255,255,255) | |
black = (0,0,0) | |
red = (255,0,0) | |
green = (0,255,0) |
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
# Bir dizin içerisinde dosya açma işlemleri | |
# Türkçe ve genel karakterler girmek istiyorsan UTF-8 olayını aynı böyle encoding etmen lazım. | |
file = open ("Bilgiler.txt","w",encoding="utf-8") # Sonuna "w" koyarsan Write komutu veriyorsun. Yani varsa dosya üstüne yazar yoksa yeni dosya yazar. | |
file.write("Eğer UTF-8 Kodu çalışıyor ise bu text dosyasında bu yazdıklarım gözükebilecektir.") | |
file.close() | |
file = open("Bilgiler.txt","a",encoding="utf-8") # W yerina A kipi kullanırsan o dosyaya append yapar girdileri varolan olaya ekler | |
file.write("\nBu yazdığım kısım ise append kipi ile yeni eklemiş olduğum satır olması lazım...") | |
file.close() |
NewerOlder