Search found 22 matches

by Chrajdal
October 30th, 2017, 7:02 pm
Forum: Everything
Topic: Compiler throws an error
Replies: 6
Views: 2658

Re: Compiler throws an error

so by that you mean i cannot use this feature via switch statement? i mean i have already implemented the same code via multiplr if statements i just wanted to learn switch statement via manipulating the virtual keyboard by using it in the switch statement. bool KeyIsPressed( unsigned char keycode ...
by Chrajdal
October 30th, 2017, 6:12 pm
Forum: Everything
Topic: Compiler throws an error
Replies: 6
Views: 2658

Re: Compiler throws an error

Hey!
You are forgetting that KeyIsPressed is a member function of Keyboard class.

try this:

Code: Select all

if(wnd.kbd.KeyIsPressed(VK_UP))
{
    faceY = faceY + 1;
}
:)
by Chrajdal
October 29th, 2017, 8:02 pm
Forum: Everything
Topic: Fuly polished game
Replies: 3
Views: 2224

Re: Fuly polished game

I just want you to remove this part: " D:\\workshop\\Chess\\Engine\\ " So this: backgroundSprite(new Surface(Surface::FromFile(L"D:\\workshop\\Chess\\Engine\\Resources\\images\\startMenu.jpg")), Vec2I( 0,0 )); becomes this: backgroundSprite(new Surface(Surface::FromFile(L"Resources\\images\\startMen...
by Chrajdal
October 29th, 2017, 7:11 pm
Forum: Everything
Topic: Fuly polished game
Replies: 3
Views: 2224

Re: Fuly polished game

Hey! I really appreciate someone who did this, because of my failed attempts. :D Please remove: backgroundSprite(new Surface(Surface::FromFile(L" D:\\workshop\\Chess\\Engine\\ Resources\\images\\startMenu.jpg")), Vec2I( 0,0 )) from every Surface loading you have! :D How do you detect winning conditi...
by Chrajdal
October 10th, 2017, 7:31 pm
Forum: Everything
Topic: My friend told me that the "Chili Framework" is useless
Replies: 8
Views: 3624

Re: My friend told me that the "Chili Framework" is useless

I really appreciate you typing all these man it means a lot to me... And thank you for helping me keep going after he demotivated me. I understand the concept now so I'll be sure to keep going.My friend has a bachelor degree in CS from the same uni as i go to and the school doesn't teach us sh*t......
by Chrajdal
September 22nd, 2017, 11:46 am
Forum: Everything
Topic: Noob learns to code in 3 months
Replies: 670
Views: 205947

Re: Noob learns to code in 3 months

Yeah for sure. Never considered it since "why would anyone do that?" Added this if (pPixels != rhs.pPixels) I wouldn't suggest doing that. Suppose, you have several different dynamic arrays in your class. In your assignment operator you would have to check all the pointers eg.: if( arr1 != rhs.arr1...
by Chrajdal
September 22nd, 2017, 11:06 am
Forum: Everything
Topic: Noob learns to code in 3 months
Replies: 670
Views: 205947

Re: Noob learns to code in 3 months

I didn't remember to look in the chillipedia. Nevertheless, I found it there: http://wiki.planetchili.net/index.php?t ... l_6#Errata

I just thought you might be interested in :)
by Chrajdal
September 22nd, 2017, 10:10 am
Forum: Everything
Topic: Noob learns to code in 3 months
Replies: 670
Views: 205947

Re: Noob learns to code in 3 months

Success! Took a break for a few hours before trying to write the code without any cheating. Took the break so everything wouldn't be superfresh in my mind and me just remembering exactly what I needed to do. This way I had to think a bit more what I needed. Decided to record it because 1. I'm a ner...
by Chrajdal
September 18th, 2017, 2:19 pm
Forum: Everything
Topic: Coding Challenge 2
Replies: 25
Views: 11315

Re: Coding Challenge 2

Well, the execution time does depend on the pc you are running it on ad on the compiler settings you are using, so I'm not sure how useful comparing like this would be. Anyways my code runs in about 1.3 seconds. I hope Chili will show us the execution times of the best codes with the solution vid. ...
by Chrajdal
September 17th, 2017, 7:38 pm
Forum: Everything
Topic: Coding Challenge 2
Replies: 25
Views: 11315

Re: Coding Challenge 2

ok. then im at like 250-300ms. started out at 650-700ms. no idea how fonduee does it in 16-20 :D oh, crap, my solution was wrong, Chili confirmed it :roll: Hopefully Chilli won't mind me giving you some test numbers so that you can be sure that you are sending correct solution. For this number: "12...