00:00
00:00
Newgrounds Background Image Theme

PAIN625582 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

The Flash 'Reg' Lounge

3,045,838 Views | 60,185 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2013-03-30 01:01:28


At 3/30/13 12:31 AM, MSGhero wrote: Ask PSvils. He swears by it. I think it's neat, but I have no use for it atm

cool, I will... tomorrow

At 3/30/13 12:36 AM, egg82 wrote: also, yeah, I never got a background for the supporter star so i'm stuck with a mismatched profile pic. If anyone's got a copy, I would appreciate a share.

http://cssimg.ngfiles.com/misc/bbs-postStarSupporter.png

Response to The Flash 'Reg' Lounge 2013-03-30 02:34:33


I'll be honest, I brought this whole thing up because you and mintPaw's profile pic hurt me right in the OCD.

just take it

cropped

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2013-03-30 02:50:13


At 3/29/13 11:43 PM, GeoKureli wrote: Couple questions
1: Has anyone used Haxe? Is it neat? is it useful?

HaXe is brilliant. While I've not done anything substantial it's a lot of fun to write in and when you first compile for a platform other than Flash Player, you feel like a wizard. Give it a go; if you know AS3 it's really simple to start writing in HaXe - for the first few "projects" I did, I kept this open on my other monitor.

Response to The Flash 'Reg' Lounge 2013-03-30 03:16:32


At 3/30/13 02:34 AM, GeoKureli wrote: I'll be honest, I brought this whole thing up because you and mintPaw's profile pic hurt me right in the OCD.

But not OCD enough to notice you mucked up the background transparency of the avatar. ;)

Response to The Flash 'Reg' Lounge 2013-03-30 03:24:27


At 3/30/13 03:16 AM, Diki wrote:
At 3/30/13 02:34 AM, GeoKureli wrote: I'll be honest, I brought this whole thing up because you and mintPaw's profile pic hurt me right in the OCD.
But not OCD enough to notice you mucked up the background transparency of the avatar. ;)

Everyone's a critic

The Flash 'Reg' Lounge

Response to The Flash 'Reg' Lounge 2013-03-30 09:35:13


At 3/30/13 02:50 AM, Sam wrote:
At 3/29/13 11:43 PM, GeoKureli wrote: Couple questions
1: Has anyone used Haxe? Is it neat? is it useful?
HaXe is brilliant. While I've not done anything substantial it's a lot of fun to write in and when you first compile for a platform other than Flash Player, you feel like a wizard. Give it a go; if you know AS3 it's really simple to start writing in HaXe - for the first few "projects" I did, I kept this open on my other monitor.

Oh my gosh... 'void' starts with a capital letter! I should definitely give it a try sometime.

Response to The Flash 'Reg' Lounge 2013-03-30 11:42:01


At 3/30/13 09:35 AM, FlyingColours wrote: Oh my gosh... 'void' starts with a capital letter! I should definitely give it a try sometime.

yeah, i'm thinking the reason AS3 (and Java, I believe) doesn't capitalize certain keywords is because we use them so often that it would be a massive pain in the ass to capitalize it every time. I'm totally okay with this line of thinking.

At 3/30/13 03:24 AM, GeoKureli wrote: Everyone's a critic

thank you! :D
now I just gotta fight with the system a bit. - I think it might not be accepting the new icon because cache.

Mint doesn't usually check this thread out, by the way. You'd need to actually PM him if you wanted to get ahold of him without derailing a thread.


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2013-03-30 12:53:16


went on a learning spree today (whole bunch of random stuff, ranging from how chocolate's made to Win 7 performance boosting tips) and learned something really awesome.

http://prntscr.com/yggf2

I just halved my boot time. Thank fucking god! Boot time is by far the most annoying thing about any Windows OS. Yes, I know I can remove a bunch of startup stuff - and I did - but there's still a few things that take a bit to load that I like having start with my computer. Like, you know, my antivirus?


Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2013-03-30 18:45:02


At 3/30/13 11:42 AM, egg82 wrote:
At 3/30/13 09:35 AM, FlyingColours wrote: Oh my gosh... 'void' starts with a capital letter! I should definitely give it a try sometime.
yeah, i'm thinking the reason AS3 (and Java, I believe) doesn't capitalize certain keywords is because we use them so often that it would be a massive pain in the ass to capitalize it every time. I'm totally okay with this line of thinking.

yeah there's a few things about Haxe I don't get. Lowercase int and void always made sense to me. C# has int which is a primitive type and it also has capital Int. I think the capital versions have object-like properties.

I like that Haxe is multiplatform, but if I want to make an .exe I'd rather use a language with method/operator overloading.

Response to The Flash 'Reg' Lounge 2013-03-30 21:41:35


At 3/30/13 11:42 AM, egg82 wrote:
At 3/30/13 09:35 AM, FlyingColours wrote: Oh my gosh... 'void' starts with a capital letter! I should definitely give it a try sometime.
yeah, i'm thinking the reason AS3 (and Java, I believe) doesn't capitalize certain keywords is because we use them so often that it would be a massive pain in the ass to capitalize it every time. I'm totally okay with this line of thinking.

When I mentioned Void, I said that because it reminded me of AS2, where 'void' is capitalised. :P

Why AS3 capitalises Number, String and Boolean but not int and uint has always been a mystery to me. Java capitalises only non-primitive data types like String. Number, String and Boolean are primitive but not capitalised in AS3.

Response to The Flash 'Reg' Lounge 2013-03-30 22:24:29


At 3/30/13 11:42 AM, egg82 wrote:
At 3/30/13 09:35 AM, FlyingColours wrote: Oh my gosh... 'void' starts with a capital letter! I should definitely give it a try sometime.
yeah, i'm thinking the reason AS3 (and Java, I believe) doesn't capitalize certain keywords is because we use them so often that it would be a massive pain in the ass to capitalize it every time. I'm totally okay with this line of thinking.

Really? I'd prefer consistency in a programming language over something as trivial as not capitalising some keywords.

Response to The Flash 'Reg' Lounge 2013-03-30 23:30:40


At 3/30/13 10:24 PM, Sam wrote:
At 3/30/13 11:42 AM, egg82 wrote: yeah, i'm thinking the reason AS3 (and Java, I believe) doesn't capitalize certain keywords is because we use them so often that it would be a massive pain in the ass to capitalize it every time. I'm totally okay with this line of thinking.
Really? I'd prefer consistency in a programming language over something as trivial as not capitalising some keywords.

I have to unequivocally agree with Sam on this. Consistency is better to have than fewer keystrokes.

Response to The Flash 'Reg' Lounge 2013-03-31 03:07:58


At 3/30/13 11:30 PM, Diki wrote: I have to unequivocally agree with Sam on this. Consistency is better to have than fewer keystrokes.

I think intellisense has removed capitalization as an issue entirely. also lowercase int and void is consistent because they are primitive datatypes, which affects how the == operator will work on the datatype. I'd like Boolean to be bool in flash, and Number to be float. but I assume they left it capitalized so people could move from as2 without hassle.

Response to The Flash 'Reg' Lounge 2013-03-31 04:37:49


At 3/31/13 03:07 AM, GeoKureli wrote: I think intellisense has removed capitalization as an issue entirely. also lowercase int and void is consistent because they are primitive datatypes, which affects how the == operator will work on the datatype. I'd like Boolean to be bool in flash, and Number to be float. but I assume they left it capitalized so people could move from as2 without hassle.

But what about String? There isn't consistency. HaXe, on the other hand, looked at AS3's primitive types and chose to capitalise. I don't see how intellisense removes issues whatsoever - it's there as an aid, not to fix anything. It doesn't make a language better because it's not a component of the language. Consistency issues should be dealt with by the designers of the language, not by third parties in hacky ways.

Response to The Flash 'Reg' Lounge 2013-03-31 09:29:09


Syntax should never be the defining factor of whether you choose a language! (Unless you got to put dolla signs before variables!!!)

I've come from doing cross platform mobile apps using various things like Unity and Marmalade, but when I finally looked at Haxe/NME not to long ago I was pleasantly surprised! I've been able to fairly seamlessly re-write my as3 code into haxe with just a few minor syntax changes. Definitely my top choice for making any cross platform 2d apps.

There are a few quirks with the language - as there are with any language.

Try compile this!

var j:Int = 20; var q:Int = 10; var b:Int = j / q; 'characters 2-20: Float should be Int'

It seems that dividing an int by another int will implicitly cast the result to a Float? And you cannot implicitly cast Floats to Int, so you're stuck having to do Std.Int() around cases like this.
It's open source so I imagine you can manually add implicitly casting Floats to Int if you know how.. but I don't!

Response to The Flash 'Reg' Lounge 2013-03-31 10:37:55


Please play through this game if you have time! I have a message for you guys at the end...

Response to The Flash 'Reg' Lounge 2013-03-31 12:19:07


At 3/31/13 10:37 AM, FlyingColours wrote: Please play through this game if you have time! I have a message for you guys at the end...
http://www.newgrounds.com/portal/view/614178

aww, thank you :D
and yeah, I realized it as soon as the first message appeared. No random stranger playing a game on the internet is that quick, that well rehearsed, and that helpful.
Would have been much more realistic if after a few seconds it said "lolz your a noob"

fun fact, typing that out gave me a hernia
another fun fact, the code you presented at the end gave me cancer. Yeah, i'm completely fucked.

Programming stuffs (tutorials and extras)

PM me (instead of MintPaw) if you're confuzzled.

thank Skaren for the sig :P

BBS Signature

Response to The Flash 'Reg' Lounge 2013-03-31 13:18:28


At 3/31/13 10:37 AM, FlyingColours wrote: Please play through this game if you have time! I have a message for you guys at the end...

Yeah, I had to throw OOP out a few times in this RPG, I have random static functions that only get used once for once specific reason, event dispatching all over because of the weird architecture of my code...but whatever.

Response to The Flash 'Reg' Lounge 2013-03-31 14:40:45


At 3/31/13 10:37 AM, FlyingColours wrote: Please play through this game if you have time! I have a message for you guys at the end...
http://www.newgrounds.com/portal/view/614178

I knew what was up very early. How did i win any matches if your ai picks rock paper scissor after me? lol

You could of easily trolled the fuck out of me if you didn't make it possible for me to win and added some sort of dialoge text chat on the AI's part. I would of never messaged just a simple "hello" in different variations woulda been enough.

Response to The Flash 'Reg' Lounge 2013-03-31 14:42:21


At 3/31/13 10:37 AM, FlyingColours wrote: Please play through this game if you have time! I have a message for you guys at the end...
http://www.newgrounds.com/portal/view/614178

hahah good stuff. I figured it out after like the 2nd guess.

Response to The Flash 'Reg' Lounge 2013-03-31 20:10:59


Thanks, guys. :)

aww, thank you :D
and yeah, I realized it as soon as the first message appeared. No random stranger playing a game on the internet is that quick, that well rehearsed, and that helpful.
Would have been much more realistic if after a few seconds it said "lolz your a noob"
fun fact, typing that out gave me a hernia
another fun fact, the code you presented at the end gave me cancer. Yeah, i'm completely fucked.

Sorry! :P I don't think the message was the only reason you figured it out, though... Perhaps you've seen my post in the lounge about making an April Fool's Day game? Perhaps you know I don't have the ability to make an online multiplayer game anyway (even Mattster's Drawing Grounds isn't real-time)?

I knew what was up very early. How did i win any matches if your ai picks rock paper scissor after me? lol

You could of easily trolled the fuck out of me if you didn't make it possible for me to win and added some sort of dialoge text chat on the AI's part. I would of never messaged just a simple "hello" in different variations woulda been enough.

Haha! When I tested it, the AI kept picking scissors... but that's the way Math.ceil(Math.random()*3) works, apparently. I did mean to type in more dialogue, but I was running out of time, and I wanted it to pass through judgement on AFD in all time zones (time is very important since AFD is a half-day event). I could also make it impossible to win, but then... I already have three ways for the AI to cheat (one round -> 2/3, 2/3->3/5, and the paper-scissors hybrid) and if I made it impossible to win, rage reviews will ensue...

Response to The Flash 'Reg' Lounge 2013-03-31 20:56:07


At 3/31/13 08:10 PM, FlyingColours wrote:

have three ways for the AI to cheat (one round -> 2/3, 2/3->3/5, and the paper-scissors hybrid) and if I made it impossible to win, rage reviews will ensue...

My ai i programmed for tic tac toe cannot be beaten.

But if you know how to play it also cannot win.

Should i program a gui for it and upload it to newgrounds for people to rage over?

Response to The Flash 'Reg' Lounge 2013-03-31 21:05:59


At 3/31/13 08:56 PM, PMMurphy wrote:
At 3/31/13 08:10 PM, FlyingColours wrote:
have three ways for the AI to cheat (one round -> 2/3, 2/3->3/5, and the paper-scissors hybrid) and if I made it impossible to win, rage reviews will ensue...

My ai i programmed for tic tac toe cannot be beaten.

But if you know how to play it also cannot win.

Should i program a gui for it and upload it to newgrounds for people to rage over?

As great an idea as that is, Mint has already done that.

Response to The Flash 'Reg' Lounge 2013-03-31 21:10:18


ahhhhh

Did you look at his source code?

I hard-coded the fuck out of my solution to tic-tac-toe.

I literally saved datastructures of all the losses play by play and single handedly solved all the problems my initial design couldn't solve.

I used some technique i read in a technical paper.
Link me to his project? I wnna play against it and mine at the same time and see if we pick different locations.

Also did he start with the center location only? Or does his ai pick random locations based on tactical decisions?

In other words.

Does he tell it to pick center then start running his ai?

Response to The Flash 'Reg' Lounge 2013-03-31 21:14:35


His ai isn't unbeatable.

I beat it.

he didn't solve one off the wall strategy you can do when you go first.

So he didn't fully test it.

But hes prolly not a perfectionist like me.

Response to The Flash 'Reg' Lounge 2013-03-31 21:16:53


I used some technique i read in a technical paper.

Could you link to that? It would probably make an interesting read. Thanks!

Link me to his project? I wnna play against it and mine at the same time and see if we pick different locations.

Um, is it that the link didn't show up for you? It's here.

Also did he start with the center location only? Or does his ai pick random locations based on tactical decisions?

In other words.

Does he tell it to pick center then start running his ai?

The player always comes first in his game.

Response to The Flash 'Reg' Lounge 2013-03-31 21:23:33


The paper's aren't free. i get them for free because im a student at a university.

But if you want to read about it its the technical papers that describe The program called anaconda for checkers.

I used the concept of how they analyzed boards without the complex programming and it basically solved 80% of the problems i had to solve.

Then i had no clue what to do afterwards.

I programmed my ai a long time ago. So i could prolly do it better now.

One of the seniors at my department programmed a flawless tic-tac-toe ai in like 40 or 50 lines of code.

Mine is like 300.

Idk how he did it.

Response to The Flash 'Reg' Lounge 2013-03-31 21:36:40


THere are actually quite a few strategies you can do that will win everytime you do it.

I'd say a total of 4 strategies that will win no matter what.

Response to The Flash 'Reg' Lounge 2013-03-31 21:45:16


At 3/31/13 09:36 PM, PMMurphy wrote: THere are actually quite a few strategies you can do that will win everytime you do it.

I'd say a total of 4 strategies that will win no matter what.

I take that back.

Every single two-way strategy there is can beat this program.

Just keep playing it over and over again until it falls for it. The locations are randomly picked hardcoded solutions because the developer knows how to play tic-tac-toe. The ai doesn't solve the problem at all. Because the answers fluctaute in no actual pattern.

Response to The Flash 'Reg' Lounge 2013-03-31 22:04:48


At 3/31/13 09:45 PM, PMMurphy wrote:
At 3/31/13 09:36 PM, PMMurphy wrote: THere are actually quite a few strategies you can do that will win everytime you do it.

I'd say a total of 4 strategies that will win no matter what.
I take that back.

Every single two-way strategy there is can beat this program.

Just keep playing it over and over again until it falls for it. The locations are randomly picked hardcoded solutions because the developer knows how to play tic-tac-toe. The ai doesn't solve the problem at all. Because the answers fluctaute in no actual pattern.

tic tac toe is easy when you go first, pick a corner, if they pick an adjacent corner you pick the opposite corner that you started with. the rest will be all blocks to victory.