Author Archives: Flovin Michaelsen
Projektiler och sådant
Jag tog på mig uppgiften att bygga torn och projektilklasser.
Till att börja med kan jag konstatera att jag till en början gapade efter för mycket. I fredags fick jag reda på att vi skulle visa upp något på måndagen, vilket ledde till en hel del panik och för lite sömn under helgen. I slutändan hann jag endå inte skriva klart dem.
Sedan kan jag också konstatera att man inte ska gapa efter för lite. Efter vårt möte på måndagen hade […]
Projektiler och sådant
Jag tog på mig uppgiften att bygga torn och projektilklasser.
Till att börja med kan jag konstatera att jag till en början gapade efter för mycket. I fredags fick jag reda på att vi skulle visa upp något på måndagen, vilket ledde till en hel del panik och för lite sömn under helgen. I slutändan hann jag endå inte skriva klart dem.
Sedan kan jag också konstatera att man inte ska gapa efter för lite. Efter vårt möte på måndagen hade […]
Halvfungerande 5 kort pokersimulator
Skiljer mellan poänghänder, men inte mellan olika valörer av samma typ av poänghand (förutom olika ”High cards”)
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//main
#include
#include
#include ”validate.h”
#include ”card.h”
#include ”deck.h”
#include ”hand.h”
int main(int argc, char* argv[])
{
Deck deck;
Card card;
Validate validate;
Hand playerOne;
Hand playerTwo;
int PlayerOneScore = 0;
int PlayerTwoScore = 0;
for (int i = 0; i != 4;)
{
std::cout << ”1. Shuffle (recommended) n2. Play two player match! n3. Display score nExit” << std::endl; // menu
std::cin >> i;
switch (i)
{
case 1:
{
deck.Shuffle(); // shuffle
std::cout << ”Shuffled..” << std::endl;
break;
}
case 2:
{
std::cout << ”Dealing.. ” << std::endl; //deal cards
for […]
Halvfungerande 5 kort pokersimulator
Skiljer mellan poänghänder, men inte mellan olika valörer av samma typ av poänghand (förutom olika ”High cards”)
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
//main
#include
#include
#include ”validate.h”
#include ”card.h”
#include ”deck.h”
#include ”hand.h”
int main(int argc, char* argv[])
{
Deck deck;
Card card;
Validate validate;
Hand playerOne;
Hand playerTwo;
int PlayerOneScore = 0;
int PlayerTwoScore = 0;
for (int i = 0; i != 4;)
{
std::cout << ”1. Shuffle (recommended) n2. Play two player match! n3. Display score nExit” << std::endl; // menu
std::cin >> i;
switch (i)
{
case 1:
{
deck.Shuffle(); // shuffle
std::cout << ”Shuffled..” << std::endl;
break;
}
case 2:
{
std::cout << ”Dealing.. ” << std::endl; //deal cards
for […]
// TemperatureConverter.h
#pragma once
class TemperatureConverter
{
public:
TemperatureConverter();
float CelsiusConvert(float& value, int& returnType);
float KelvinConvert(float& value, int& returnType);
float FahrenheitConvert(float& value, int& returnType);
};
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// TemperatureConverter.cpp
#include
#include
#include ”TemperatureConverter.h”
TemperatureConverter::TemperatureConverter()
{
}
float TemperatureConverter::CelsiusConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: //return fahrenheit
{
return (value + 273.15f);
break;
}
case 2: // return Kelvin
{
return (value * 9 / 5 + 32);
break;
}
default:
{
return 0;
break;
}
}
}
float TemperatureConverter::KelvinConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: //return celsius
{
return (value – 273.15f);
break;
}
case 2: // return fahrenheit
{
return ((value – 273.15f) * 9 / 5 + 32);
break;
}
default:
{
return 0;
break;
}
}
}
float TemperatureConverter::FahrenheitConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: // return celsius
{
return ((value – 32) […]
// TemperatureConverter.h
#pragma once
class TemperatureConverter
{
public:
TemperatureConverter();
float CelsiusConvert(float& value, int& returnType);
float KelvinConvert(float& value, int& returnType);
float FahrenheitConvert(float& value, int& returnType);
};
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// TemperatureConverter.cpp
#include
#include
#include ”TemperatureConverter.h”
TemperatureConverter::TemperatureConverter()
{
}
float TemperatureConverter::CelsiusConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: //return fahrenheit
{
return (value + 273.15f);
break;
}
case 2: // return Kelvin
{
return (value * 9 / 5 + 32);
break;
}
default:
{
return 0;
break;
}
}
}
float TemperatureConverter::KelvinConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: //return celsius
{
return (value – 273.15f);
break;
}
case 2: // return fahrenheit
{
return ((value – 273.15f) * 9 / 5 + 32);
break;
}
default:
{
return 0;
break;
}
}
}
float TemperatureConverter::FahrenheitConvert(float& value, int& returnType)
{
switch (returnType)
{
case 1: // return celsius
{
return ((value – 32) […]
Idea
Alright. The weekend assignment was to come up with a rudimentary idea for a game.
So here goes.
”Cushion This!”
A fart cushion game.
Designed for an audience of 6-12.
You go around hiding fart cushions in various places.
Aesthetics would be comedy, with the challenge of not getting caught.
Mechanics used would support stealth.
The target of your cushioning have random actions (such as going for some coffee) to allow the player a chance to perform his prank.
Idea
Alright. The weekend assignment was to come up with a rudimentary idea for a game.
So here goes.
”Cushion This!”
A fart cushion game.
Designed for an audience of 6-12.
You go around hiding fart cushions in various places.
Aesthetics would be comedy, with the challenge of not getting caught.
Mechanics used would support stealth.
The target of your cushioning have random actions (such as going for some coffee) to allow the player a chance to perform his prank.
Idea
Alright. The weekend assignment was to come up with a rudimentary idea for a game.
So here goes.
”Cushion This!”
A fart cushion game.
Designed for an audience of 6-12.
You go around hiding fart cushions in various places.
Aesthetics would be comedy, with the challenge of not getting caught.
Mechanics used would support stealth.
The target of your cushioning have random actions (such as going for some coffee) to allow the player a chance to perform his prank.
Idea
Alright. The weekend assignment was to come up with a rudimentary idea for a game.
So here goes.
”Cushion This!”
A fart cushion game.
Designed for an audience of 6-12.
You go around hiding fart cushions in various places.
Aesthetics would be comedy, with the challenge of not getting caught.
Mechanics used would support stealth.
The target of your cushioning have random actions (such as going for some coffee) to allow the player a chance to perform his prank.
Week 36
Week 36 almost over.
Finished first assignment and took on the responsibility of being referee in a D&D scenario. Which I’ve never done before.
Week 36
Week 36 almost over.
Finished first assignment and took on the responsibility of being referee in a D&D scenario. Which I’ve never done before.
Week 36
Week 36 almost over.
Finished first assignment and took on the responsibility of being referee in a D&D scenario. Which I’ve never done before.
Week 36
Week 36 almost over.
Finished first assignment and took on the responsibility of being referee in a D&D scenario. Which I’ve never done before.