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 List<Player> getPlayerListCopy() | |
{ | |
List<Player> copy; | |
lock (this.playerList) | |
{ | |
copy = this.playerList.ToList(); | |
} | |
return copy; | |
} |
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
package PokerKata; | |
import org.junit.Assert.*; | |
public class Rover { | |
public class Bot { | |
public String facing; | |
public int X; |
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 Microsoft.Xna.Framework; | |
using Microsoft.Xna.Framework.Input; | |
namespace Mastiff | |
{ | |
class Physics |
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
What tools do you use for: | |
calendaring | |
project management | |
source control | |
bug tracking | |
Are the working conditions quiet? | |
Are you agile? Do you subscribe to a specific methodology or framework? | |
What does a typical development phase/sprint look like? | |
What does a typical day of a developer consist of? |
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
int f = 5; | |
public void dan(int x) | |
{ | |
x = 6; | |
} | |
dan(f); | |
System.out.print(f); |
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
function OnEvent(event, arg) | |
if (event == "M_PRESSED" and arg == 3) then | |
for i=0,100,1 do | |
color( 255, 0 , 0 ) | |
color( 0 , 255, 0 ) | |
color( 0 , 0 , 255) | |
color( 255, 0 , 0 ) | |
color( 0 , 255, 0 ) | |
color( 0 , 0 , 255) |
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
private IDictionary<string, Texture2D> Sprites; | |
private void LoadSpriteDictionary(ContentManager content) | |
{ | |
Sprites.Add("wall", content.Load<Texture2D>("Entities/Environment/wall")); | |
Sprites.Add("floor", content.Load<Texture2D>("Entities/Environment/floor")); | |
} | |
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
# in player.rb | |
class Player | |
def initialize(window) | |
@bandit_sprite = Gosu::Image.new(window, "bandit.bmp", false) | |
@x = @y = 0 | |
end | |
def draw | |
@bandit_sprite.draw(24*@x, 24*@y, 1) |
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 Player | |
def initialize(window) | |
@bandit_sprite = Gosu::Image.new(window, "bandit.bmp", false) | |
@x = @y = 0 | |
end | |
def draw | |
@bandit_sprite.draw(24*@x, 24*@y, 1) | |
end |
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
# this is also what the player.rb looks like | |
class Enemy | |
def initialize(window) | |
@skeleton_sprite = Gosu::Image.new(window, "skeleton.bmp", false) | |
@x = @y = 19 | |
end | |
def draw |
OlderNewer