• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 03:30
CET 09:30
KST 17:30
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
RSL Season 3 - Playoffs Preview0RSL Season 3 - RO16 Groups C & D Preview0RSL Season 3 - RO16 Groups A & B Preview2TL.net Map Contest #21: Winners12Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10
Community News
Weekly Cups (Nov 24-30): MaxPax, Clem, herO win2BGE Stara Zagora 2026 announced15[BSL21] Ro.16 Group Stage (C->B->A->D)4Weekly Cups (Nov 17-23): Solar, MaxPax, Clem win3RSL Season 3: RO16 results & RO8 bracket13
StarCraft 2
General
Chinese SC2 server to reopen; live all-star event in Hangzhou Maestros of the Game: Live Finals Preview (RO4) BGE Stara Zagora 2026 announced Weekly Cups (Nov 24-30): MaxPax, Clem, herO win SC2 Proleague Discontinued; SKT, KT, SGK, CJ disband
Tourneys
RSL Offline Finals Info - Dec 13 and 14! StarCraft Evolution League (SC Evo Biweekly) RSL Offline FInals Sea Duckling Open (Global, Bronze-Diamond) $5,000+ WardiTV 2025 Championship
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 502 Negative Reinforcement Mutation # 501 Price of Progress Mutation # 500 Fright night Mutation # 499 Chilling Adaptation
Brood War
General
BW General Discussion Which season is the best in ASL? Data analysis on 70 million replays BGH Auto Balance -> http://bghmmr.eu/ [ASL20] Ask the mapmakers — Drop your questions
Tourneys
[BSL21] RO16 Group D - Sunday 21:00 CET [BSL21] RO16 Group A - Saturday 21:00 CET [Megathread] Daily Proleagues [BSL21] RO16 Group B - Sunday 21:00 CET
Strategy
Current Meta Game Theory for Starcraft How to stay on top of macro? PvZ map balance
Other Games
General Games
Nintendo Switch Thread ZeroSpace Megathread Stormgate/Frost Giant Megathread The Perfect Game Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine The Big Programming Thread Artificial Intelligence Thread
Fan Clubs
White-Ra Fan Club
Media & Entertainment
[Manga] One Piece Movie Discussion! Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion NBA General Discussion
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
Where to ask questions and add stream? The Automated Ban List
Blogs
Physical Exertion During Gam…
TrAiDoS
James Bond movies ranking - pa…
Topin
Thanks for the RSL
Hildegard
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1623 users

The Big Programming Thread - Page 526

Forum Index > General Forum
Post a Reply
Prev 1 524 525 526 527 528 1032 Next
Thread Rules
1. This is not a "do my homework for me" thread. If you have specific questions, ask, but don't post an assignment or homework problem and expect an exact solution.
2. No recruiting for your cockamamie projects (you won't replace facebook with 3 dudes you found on the internet and $20)
3. If you can't articulate why a language is bad, don't start slinging shit about it. Just remember that nothing is worse than making CSS IE6 compatible.
4. Use [code] tags to format code blocks.
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
Last Edited: 2014-10-03 17:27:51
October 03 2014 17:17 GMT
#10501
Javascript/JQuery question:

Using the following code, I'm setting up an auto-refresh on a div. Every 5 seconds, I want it to refresh the content. However, I don't want it to do that forever, so I put a countdown on it. The routeFrame function does the work of setting the div content, but I didn't include it because I don't think it's relevant. If you think it is, I'll show it.
+ Show Spoiler +
<script type="text/javascript">
$(document).ready(function () {
startRefresh(60);

function startRefresh(remaining) {
if (remaining > 0) {
setTimeout(startRefresh, 5000, remaining - 1);
} else {
$('#refreshCount').html("<br />Refresh limit reached. Please refresh page to see further updates");
}
routeFrameToPartialViewWithAnimator("#log", "/Packages/DisplayWorkLogForUserTest/", "/Content/ajax-loader.gif");
}
});
</script>


It works great in Chrome - refreshes every 5 seconds and stops after 5 minutes. But in IE8 it runs once and then stops, and I have no idea why. I put in an alert of the "remaining" variable, and it first shows 60 then it shows 'undefined'. Any ideas?

Edit: Nevermind! I found out that the setTimeout function works differently in IE8. Thought it was a problem with my own code: http://stackoverflow.com/questions/9568248/settimeout-internet-explorer
Nesserev
Profile Blog Joined January 2011
Belgium2760 Posts
October 03 2014 17:35 GMT
#10502
--- Nuked ---
enigmaticcam
Profile Blog Joined October 2010
United States280 Posts
October 03 2014 17:38 GMT
#10503
On October 04 2014 02:35 Nesserev wrote:
Show nested quote +
On October 04 2014 02:17 enigmaticcam wrote:
+ Show Spoiler +
Javascript/JQuery question:

Using the following code, I'm setting up an auto-refresh on a div. Every 5 seconds, I want it to refresh the content. However, I don't want it to do that forever, so I put a countdown on it. The routeFrame function does the work of setting the div content, but I didn't include it because I don't think it's relevant. If you think it is, I'll show it.
+ Show Spoiler +
<script type="text/javascript">
$(document).ready(function () {
startRefresh(60);

function startRefresh(remaining) {
if (remaining > 0) {
setTimeout(startRefresh, 5000, remaining - 1);
} else {
$('#refreshCount').html("<br />Refresh limit reached. Please refresh page to see further updates");
}
routeFrameToPartialViewWithAnimator("#log", "/Packages/DisplayWorkLogForUserTest/", "/Content/ajax-loader.gif");
}
});
</script>


It works great in Chrome - refreshes every 5 seconds and stops after 5 minutes. But in IE8 it runs once and then stops, and I have no idea why. I put in an alert of the "remaining" variable, and it first shows 60 then it shows 'undefined'. Any ideas?

Edit: Nevermind! I found out that the setTimeout function works differently in IE8. Thought it was a problem with my own code: http://stackoverflow.com/questions/9568248/settimeout-internet-explorer

Haha, you thought your code was the problem and not IE8?

What was I thinking?! :D
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2014-10-03 23:42:33
October 03 2014 21:52 GMT
#10504
On October 03 2014 23:25 FFGenerations wrote:
hi guys, can you please have a look at this and tell me why my Wscript.exe stays in task manager when i randomly close the application? I'm trying to figure out where to put this shit to catch whatever error it gets when you randomly close it..... it no longer shows an error message when you randomly close it, but wscript stays running in task manager

+ Show Spoiler +


On Error Resume Next

Do

Do While checkSortBy() = 0

If horizontalNumber = -1 Then

iret = iim1.iimClose
WScript.Quit(iret)

ElseIf checkNextLinkExists() Then

clickLink()
modifyControlValues()

Else

clickPreviousLink()

End If

Loop

extract()

clickPreviousLink()

Loop

objFileSystem.Close
strOutputFile.Close
iret = iim1.iimClose
WScript.Quit(iret)



it started working when i removed
objFileSystem.Close
strOutputFile.Close
.....................

(also i changed a lot , thanks, but it only started working when i removed those lines :p )



anyone know why InStr doesn't seem to pick up a £ sign? :/
this line returns 0

productRatingIndex = InStr(extractionDataProductDesc,"£")



+ Show Spoiler +

nice, i managed to use Split this time to make something easier

extractionDataProductCodeSplit1 = Split(extractionDataProductPromo,"<DD>")
extractionDataProductCodeSplit2 = extractionDataProductCodeSplit1(1)
extractionDataProductCodeSplit3 = Split(extractionDataProductCodeSplit2,"</DD>")
extractionDataProductCodeEdit = extractionDataProductCodeSplit3(0)
msgbox extractionDataProductCodeEdit

this also doesnt need to look for the £ sign (but im still wondering lol)
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
HaRuHi
Profile Blog Joined November 2010
1220 Posts
October 04 2014 13:20 GMT
#10505
c++11 question

string s="Hello";
string::iterator siter=s.begin();

string s1="what";

siter=s.erase(s.begin(),s.begin()+3);


So this erases the first three elements in s, since this could invalidate the iterator "siter" I revalidate it using the
return value.

Now if I try to insert all elements of s1 into s
siter=s.insert(siter,s1.begin(),s1.end());

I assume that this would be a call to insert like under point 7
http://www.cplusplus.com/reference/string/string/insert/

range (7)
template <class InputIterator>
iterator insert (iterator p, InputIterator first, InputIterator last);

Now I haven't written templates yet and so I don't understand the return type. I am not sure,
so, should s.erase(s.begin(),s.begin()+3) return an iterator?
If I try to use the assign operator, gcc4.7.1 say no match and no possible candidates.
Now I read in the fifth edition of the C++ primer on page 344 that the old version of
insert that took an iterator range returns void, this is what I assume happens here.
Does the gcc4.7.1 not support this particular part of the new standard?
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-10-04 22:36:40
October 04 2014 22:33 GMT
#10506
I'm still learning C++ but as far as I know, both erase and insert return an iterator in your specific case. They may return something else as well and you may see that from the link you refer to. E.g. s.erase(0, 3) should return std::string with content "lo".
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2014-10-04 23:04:37
October 04 2014 23:02 GMT
#10507
Yo what did you guys do for your Final Year Projects? I have to decide on something pretty fucking soon. I wanted to do a visual novel style game in actionscript/flash using OOP but my personal tutor (whose focus is databases I think) said

1) everyone does some OOP thing as default and its not gonna make me stand out and will be 2nd class stuff (he is the one marking it T_T )
2) if i want to do games then maybe i should be in game dev not SE (lol did i get the right tutor?)
3) what PROBLEM am i solving with this piece of work?

He showed me a list of old projects he had archived things like "database for football manager system", "database for taking meeting minutes and sharing with certain peoples"

At that point I was like, "OK how about I integrate one of these database problem-solving ideas into my game?" (I could come up with something better but the first thing I thought of was the world being dynamic according to what other people have input). he didn't seem to give much input after that, like he just shut down.... idk??

I talked to another lecturer about our meeting and she suggested that by "what problem does it solve" he meant something like "what issues with latency will i have and how to deal with this?". Rather than just meaning a theoretical problem. Which sung well with me.

The other lecturer also said a project doesn't have to be amazingly original to get a good grade, it just has to be well constructed and have a well written/structured report. (this lecturer was the project coordinator but like i said the other guy does the marking for me)

My other idea was to (instead of making a visual novel RPG itself) make an application that allows a user to build a visual novel game by using dropdown/menus and input boxes. Just now having a quick look, someone has done this to great effect already



It still sounds like a pretty challenging thing to try to do myself?

Another random idea I had was for a mobile game where you create and shoot projectiles by drawing on the screen and which is heavily balanced to be competitive vs computer e.g. with projectiles that might speed up or slow down other projectiles, ones which are area of effect, ones which are fast, ones which don't collide with other projectiles and deal damage to opponent face but have opportunity cost etc. This is probably something that has been done to death (I honestly have no idea, i've never played or seen any mobile game in my life apart from a sonic the hedgehog version and Gems)

So yeah officially I have until 10th Oct to come up with a project that will get me 70%++ grade and be interesting to me BUT ALSO SOMETHING THAT IS VIABLE / NOT RETARDEDLY COMPLEX BECAUSE I AM CURRENTLY SHIT AT CODING AND DON'T KNOW WHAT IS VIABLE OR NOT lol.
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Millitron
Profile Blog Joined August 2010
United States2611 Posts
October 04 2014 23:19 GMT
#10508
On October 05 2014 08:02 FFGenerations wrote:
Yo what did you guys do for your Final Year Projects? I have to decide on something pretty fucking soon. I wanted to do a visual novel style game in actionscript/flash using OOP but my personal tutor (whose focus is databases I think) said

1) everyone does some OOP thing as default and its not gonna make me stand out and will be 2nd class stuff (he is the one marking it T_T )
2) if i want to do games then maybe i should be in game dev not SE (lol did i get the right tutor?)
3) what PROBLEM am i solving with this piece of work?

He showed me a list of old projects he had archived things like "database for football manager system", "database for taking meeting minutes and sharing with certain peoples"

At that point I was like, "OK how about I integrate one of these database problem-solving ideas into my game?" (I could come up with something better but the first thing I thought of was the world being dynamic according to what other people have input). he didn't seem to give much input after that, like he just shut down.... idk??

I talked to another lecturer about our meeting and she suggested that by "what problem does it solve" he meant something like "what issues with latency will i have and how to deal with this?". Rather than just meaning a theoretical problem. Which sung well with me.

The other lecturer also said a project doesn't have to be amazingly original to get a good grade, it just has to be well constructed and have a well written/structured report. (this lecturer was the project coordinator but like i said the other guy does the marking for me)

My other idea was to (instead of making a visual novel RPG itself) make an application that allows a user to build a visual novel game by using dropdown/menus and input boxes. Just now having a quick look, someone has done this to great effect already

https://www.youtube.com/watch?v=hCMdICOwagU#t=246

It still sounds like a pretty challenging thing to try to do myself?

Another random idea I had was for a mobile game where you create and shoot projectiles by drawing on the screen and which is heavily balanced to be competitive vs computer e.g. with projectiles that might speed up or slow down other projectiles, ones which are area of effect, ones which are fast, ones which don't collide with other projectiles and deal damage to opponent face but have opportunity cost etc. This is probably something that has been done to death (I honestly have no idea, i've never played or seen any mobile game in my life apart from a sonic the hedgehog version and Gems)

So yeah officially I have until 10th Oct to come up with a project that will get me 70%++ grade and be interesting to me BUT ALSO SOMETHING THAT IS VIABLE / NOT RETARDEDLY COMPLEX BECAUSE I AM CURRENTLY SHIT AT CODING AND DON'T KNOW WHAT IS VIABLE OR NOT lol.

If you're shit at coding, what are you doing in a software engineering program at your senior year?

Anyways, you seem to like games and your tutor seems to like databases. How about a game about managing some big system? Maybe a country or a business or something.
Who called in the fleet?
WolfintheSheep
Profile Joined June 2011
Canada14127 Posts
October 04 2014 23:23 GMT
#10509
Wait, what kind of program are you completing?

Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.
Average means I'm better than half of you.
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-10-04 23:28:02
October 04 2014 23:23 GMT
#10510
My final year project has been a Sudoku game (implemented in Java purely because it's the language I know more, and that's ok for a university student). I think Sudoku could be challenging not as a game itself but as implementing certain things such as: sudoku solver, puzzle validation (I think minimal unique* puzzle has to have at least 17 cells), etc. You don't have to pick Sudoku though, any logic-based puzzle game is fine, especially if it involves lots of algorithms for the sake of demanding lecturers. :D

*unique as in 'having one solution only'

Edit: I think the previous student of my project's supervisor has done a Rush Hour game.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2014-10-04 23:36:25
October 04 2014 23:33 GMT
#10511
On October 05 2014 08:23 WolfintheSheep wrote:
Wait, what kind of program are you completing?

Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.


SE
see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have

i thought "building something in OOP" would be sufficient to begin with but clearly i need to do more.

i do have like 4 months to solidly work on this so i'm quite capable of going above and beyond , but i need to start figuring out a starting point
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
October 04 2014 23:35 GMT
#10512
On October 05 2014 08:33 FFGenerations wrote:
Show nested quote +
On October 05 2014 08:23 WolfintheSheep wrote:
Wait, what kind of program are you completing?

Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.


SE
see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have


As lecturers say, part of your project is research. If you don't know how to do stuff in a programming language X, then look it up and learn it.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
Last Edited: 2014-10-04 23:38:12
October 04 2014 23:37 GMT
#10513
On October 05 2014 08:35 darkness wrote:
Show nested quote +
On October 05 2014 08:33 FFGenerations wrote:
On October 05 2014 08:23 WolfintheSheep wrote:
Wait, what kind of program are you completing?

Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.


SE
see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have


As lecturers say, part of your project is research. If you don't know how to do stuff in a programming language X, then look it up and learn it.


yup i have 4+ months to do this solidly so that is all cool. but i need to choose something that will get me 70%+ grade , and having little experience means i'm throwing this out on forum for any tips :D cheers guys

ps: i finished my man's work so am starting up on this now, i couldnt sleep though so i come post thread before any research obviously
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
Shield
Profile Blog Joined August 2009
Bulgaria4824 Posts
Last Edited: 2014-10-05 00:00:36
October 04 2014 23:44 GMT
#10514
On October 05 2014 08:37 FFGenerations wrote:
Show nested quote +
On October 05 2014 08:35 darkness wrote:
On October 05 2014 08:33 FFGenerations wrote:
On October 05 2014 08:23 WolfintheSheep wrote:
Wait, what kind of program are you completing?

Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.


SE
see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have


As lecturers say, part of your project is research. If you don't know how to do stuff in a programming language X, then look it up and learn it.


yup i have 4+ months to do this solidly so that is all cool. but i need to choose something that will get me 70%+ grade , and having little experience means i'm throwing this out on forum for any tips :D cheers guys

ps: i finished my man's work so am starting up on this now, i couldnt sleep though so i come post thread before any research obviously


Well, in this case, I suppose your project supervisor expects you not to draw 'cool' graphics with action-packed pew-pew (although that's still nice to do) but he/she rather cares about algorithms behind the scenes and the problems they solve. So in the case of Sudoku, that would be an algorithm to solve a puzzle by software itself (brute-force, dancing links, etc), an algorithm to check a puzzle for a unique solution, an algorithm for checking duplicates, etc.

Of course, if you choose OOP, then you may have to impress him/her with a thoroughly planned class design. I don't think you have to quit OOP for your project. You just have to explain why OOP would be necessary in your case and, as mentioned earlier, good class design.

Edit: Do you have to write a dissertation as well? If yes, it may be a good idea to say how your software compares to other applications if any. If there are any, you may have a look at existing ones for insights and ideas how to improve yours. I suppose it may also be nice if you say to your supervisor that 'application X presents a problem in scenario Y', and then describe how your program is going to solve it. It addresses his/her concerns about problem solving I think.
FFGenerations
Profile Blog Joined April 2011
7088 Posts
October 05 2014 00:07 GMT
#10515
On October 05 2014 08:44 darkness wrote:
Show nested quote +
On October 05 2014 08:37 FFGenerations wrote:
On October 05 2014 08:35 darkness wrote:
On October 05 2014 08:33 FFGenerations wrote:
On October 05 2014 08:23 WolfintheSheep wrote:
Wait, what kind of program are you completing?

Because if you're in Software Engineering, and you want your final project to be something that's like 90% graphics and UI, then I'd say your tutor has a very legitimate critique in asking you.


SE
see this is what he said but from my perspective IE WITH VERY LITTLE EXPERIENCE WITH SE (2 years at college where we done very basic application dev and some php AND LITERALLY ZERO MATH) i struggle to see what options i have


As lecturers say, part of your project is research. If you don't know how to do stuff in a programming language X, then look it up and learn it.


yup i have 4+ months to do this solidly so that is all cool. but i need to choose something that will get me 70%+ grade , and having little experience means i'm throwing this out on forum for any tips :D cheers guys

ps: i finished my man's work so am starting up on this now, i couldnt sleep though so i come post thread before any research obviously


Well, in this case, I suppose your project supervisor expects you not to draw 'cool' graphics with action-packed pew-pew (although that's still nice to do) but he/she rather cares about algorithms behind the scenes and the problems they solve. So in the case of Sudoku, that would be an algorithm to solve a puzzle by software itself (brute-force, dancing links, etc), an algorithm to check a puzzle for a unique solution, an algorithm for checking duplicates, etc.

Of course, if you choose OOP, then you may have to impress him/her with a thoroughly planned class design. I don't think you have to quit OOP for your project. You just have to explain why OOP would be necessary in your case and, as mentioned earlier, good class design.

Edit: Do you have to write a dissertation as well? If yes, it may be a good idea to say how your software compares to other applications if any. If there are any, you may have a look at existing ones for insights and ideas how to improve yours. I suppose it may also be nice if you say to your supervisor that 'application X presents a problem in scenario Y', and then describe how your program is going to solve it. It addresses his/her concerns about problem solving I think.


yes the dissertation is basically what is being marked i think . so there is a focus on the writeup/planning.

that's not a bad idea - to look at an existing software/game and see if i can find a shortcoming and try to improve this in my own product/version

this is probably what i'll be doing when try to research problems in SE that need solving/have various potential solutions that need to be justified
Cool BW Music Vid - youtube.com/watch?v=W54nlqJ-Nx8 ~~~~~ ᕤ OYSTERS ᕤ CLAMS ᕤ AND ᕤ CUCKOLDS ᕤ ~~~~~~ ༼ ᕤ◕◡◕ ༽ᕤ PUNCH HIM ༼ ᕤ◕◡◕ ༽ᕤ
icystorage
Profile Blog Joined November 2008
Jollibee19350 Posts
October 05 2014 00:21 GMT
#10516
i've made a neural network on my senior year. AI rocks
LiquidDota StaffAre you ready for a Miracle-? We are! The International 2017 Champions!
Millitron
Profile Blog Joined August 2010
United States2611 Posts
October 05 2014 00:27 GMT
#10517
As darkness said, Sudoku is a great semester-long project. Gotta show foresight in planning your file format. You show algorithm understanding when you check the puzzle for validity and when you implement a solver. You show UI concepts when you make your menus and display the puzzle. You can show MVC by building the game with that in mind.

Really though, any similar puzzle is a good idea. Card games too can be good.
Who called in the fleet?
HaRuHi
Profile Blog Joined November 2010
1220 Posts
October 05 2014 10:57 GMT
#10518
On October 05 2014 07:33 darkness wrote:
I'm still learning C++ but as far as I know, both erase and insert return an iterator in your specific case. They may return something else as well and you may see that from the link you refer to. E.g. s.erase(0, 3) should return std::string with content "lo".


They should return. Finally found an answer to my question. One can look up the headers of the implementation of their standard library, in my case, using mingw with codeblocks, basic_string can be found here
C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\4.7.1\include\c++\bits

and this is the implementation of insert
      template<class _InputIterator>
void
insert(iterator __p, _InputIterator __beg, _InputIterator __end)
{ this->replace(__p, __p, __beg, __end); }

So using gcc generally you can look up those headers which is nice when learning the language, because it allows you to see if it is your code or if the library is not up to the new standard yet.

ps: It got fixed by now, should update my compiler/library
Deranes
Profile Joined July 2010
Germany75 Posts
October 05 2014 11:51 GMT
#10519
If you want to do research that could be really interesting for some people, you could do a project about trying to optimize a CPU implementation of a sudoku solver by doing the work on the GPU instead. I assume there are some very interesting problem solutions you could come up with in regards to efficiently managing memory and splitting work between threads, threadgroups and warps.

And if you do the work in GLs or Direct3Ds compute shader instead of CUDA you get some experience on working with a game graphics API at the same time.
Manit0u
Profile Blog Joined August 2004
Poland17496 Posts
Last Edited: 2014-10-05 14:07:47
October 05 2014 14:06 GMT
#10520
Or you could make a game about database management, where you have to choose between sqlite, mysql, postgresql, mongodb etc. and you do actual db design inside the game and measure performance on all dbs in order to pick one that is best Server/DB admin RPG.
Time is precious. Waste it wisely.
Prev 1 524 525 526 527 528 1032 Next
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
WardiTV Mondays #62
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
SortOf 140
-ZergGirl 60
StarCraft: Brood War
Tasteless 284
Sacsri 109
Pusan 107
Sharp 99
Dewaltoss 62
Shine 57
Killer 53
ZergMaN 29
Bale 24
sorry 19
[ Show more ]
ToSsGirL 14
Shinee 14
Hm[arnc] 6
Dota 2
febbydoto184
NeuroSwarm118
canceldota36
League of Legends
JimRising 567
Reynor71
Counter-Strike
shoxiejesuss223
Super Smash Bros
Westballz34
Other Games
summit1g12776
WinterStarcraft569
crisheroes346
C9.Mang0292
Mew2King40
Organizations
Other Games
gamesdonequick634
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 15 non-featured ]
StarCraft 2
• Berry_CruncH245
• Light_VIP 5
• LUISG 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• iopq 2
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1124
Upcoming Events
The PondCast
1h 30m
OSC
7h 30m
Demi vs Mixu
Nicoract vs TBD
Babymarine vs MindelVK
ForJumy vs TBD
Shameless vs Percival
Replay Cast
15h 30m
Korean StarCraft League
1d 18h
CranKy Ducklings
2 days
WardiTV 2025
2 days
SC Evo League
2 days
BSL 21
2 days
Sziky vs OyAji
Gypsy vs eOnzErG
OSC
2 days
Solar vs Creator
ByuN vs Gerald
Percival vs Babymarine
Moja vs Krystianer
EnDerr vs ForJumy
sebesdes vs Nicoract
Sparkling Tuna Cup
3 days
[ Show More ]
WardiTV 2025
3 days
OSC
3 days
BSL 21
3 days
Bonyth vs StRyKeR
Tarson vs Dandy
Replay Cast
4 days
Wardi Open
4 days
StarCraft2.fi
4 days
Monday Night Weeklies
4 days
Replay Cast
4 days
WardiTV 2025
5 days
StarCraft2.fi
5 days
PiGosaur Monday
5 days
StarCraft2.fi
6 days
Tenacious Turtle Tussle
6 days
Liquipedia Results

Completed

Proleague 2025-11-30
RSL Revival: Season 3
Light HT

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
YSL S2
BSL Season 21
CSCL: Masked Kings S3
Slon Tour Season 2
Acropolis #4 - TS3
META Madness #9
SL Budapest Major 2025
ESL Impact League Season 8
BLAST Rivals Fall 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2

Upcoming

BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
Bellum Gens Elite Stara Zagora 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
Kuram Kup
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.