LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tic Tac Toe Coding Challenge

Dude you are so cool.
0 Kudos
Message 111 of 183
(3,847 Views)

Hey Losers,

Just read the challenge and here is my first attempt.

Have only tested it on CC. There is works well.

It is big,fat, slow and coded with extreme haste. Thought I would drop it off so you guys could destroy it.

As far as I know it does not Cheat (No Deep Toe lurking).

I am sure I am going to regret this.

Enjoy!!!!!

J

 

 

 

Message 112 of 183
(3,771 Views)

ohw313

Nice to to have some fresh air in here. Unfortunately, you forgot to include some subvi(s) and your player can't be tested.

Chilly Charly    (aka CC)
0 Kudos
Message 113 of 183
(3,747 Views)

Duh,

oops. Sorry.

Well, At least it would never win then.

Here is complete set.

J

Download All
0 Kudos
Message 114 of 183
(3,731 Views)
Wow! This challenge is just what I needed. After a long and distinguished LabVIEW career of... (lemme think... it's 2006 now...) two days, this contest is the perfect vehicle to get the ol' programming juices flowing again. Or, for the more skeptical among us, it's a good project to do while learning LabVIEW.

Since I am a complete noobie and have virtually no chance of actually winning this competition, I was planning on posting my source code (is that the right term?) to the forum sometime next week. Hopefully some of you will be able to give me some feedback on structure, layout, and other (better) ways to accomplish the same thing. (Trying to figure out how to throw an error using the help files has been a royal PITA.)

I'm using the version 8 evaluation edition; what versions do I have to save as in order for people here to be able to run it?

------------------------

General rules question: Is it legal to retain a history of moves an opponent makes during all games to try and determine what their strategy is? (I don't know if this is even possible...)
0 Kudos
Message 115 of 183
(3,617 Views)

Welcome!

You should probably post your VI in 8.0. If needed somebody with more experience can convert it down to 7.1, just in case you use some fancy 8.0 only features 😉


@Daklu wrote:
General rules question: Is it legal to retain a history of moves an opponent makes during all games to try and determine what their strategy is? (I don't know if this is even possible...)

I would think this is allowed, but in the competition your player must "play to loose" against opponents he has never seen, so this strategy would not make much sense. 😉
.

0 Kudos
Message 116 of 183
(3,609 Views)

It is unclear whether you have programming experience or not (the source code question, and yes, that it the right term in LV as well. Look here for some details), but I'm not entirely sure starting on a relatively large project is the best move. Anyway, you seem to be intelligent, so I assume you'll be able to tell yourself whether this is more than you can handle or not.

I normally give the following paragraph as a standard reply to newbies -

To learn more about LabVIEW, I suggest you try searching this site and google for LabVIEW tutorials. Here, here, here and here are a few you can start with and here are some tutorial videos. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide and the LabVIEW user manual (Help>>Search the LabVIEW Bookshelf).

and it would be nice to have feedback whether those tutorials are actually worth anything.

Anyway, G is a great language and you can find a lot of stuff online, so just start digging, and if you get good at it, come and help at the forums.

P.S. For some fun, go to the BreakPoint.


___________________
Try to take over the world!
0 Kudos
Message 117 of 183
(3,604 Views)
Thanks for the links tst, they look very good. One of the difficulties I have with searching online is that it is a bit hard to find answers to specific questions. Sure I can take it step by step and work through all the tutorials (and I will soon), but it's way more fun to jump in the deep end of the pool and see if I can swim. 😉

To answer your question, I do have programming experience although I am not a programmer by trade. Most of my experience is in VB and VB.NET with a touch of assembly (68HC11) and Simulink years (and years) ago. I find Labview scores very high on the coolness scale.

"You can also contact your local NI office and join one of their courses."

Actually, that's what I did. I happened to stumble across a local 'Introduction to Labview' course (one of the freebies), picked up a demo copy of version 8, and banged out most of my code in the next two days. It isn't pretty, it isn't fast, and the algorithm isn't very good, but at least I got it to work.

So with that glowing introduction, here's my initial attempt at Labview programming... TOE JAM! Given the size and number of my vi's, I'm willing to bet that my implementation is much, MUCH more complex than it needs to be. C'est la vie. Incidentally, since my implementation seems to be a variation of what most everybody else did, I didn't bother protecting it. My source is there for all the world to see (and mock.)

Message Edited by Daklu on 06-23-2006 01:12 PM

0 Kudos
Message 118 of 183
(3,524 Views)


@Daklu wrote:
So with that glowing introduction, here's my initial attempt at Labview programming... TOE JAM!
What kind of file format is this?
0 Kudos
Message 119 of 183
(3,517 Views)
It's 7zip format.  You can open it with winrar, or gzip, I think.
0 Kudos
Message 120 of 183
(3,514 Views)