1 This Game is supposed to not be flawed or run into paradoxes. every post should contain the number of the first line of the last counting/valid post +1 Counting/Valid posts are only posts that conform with these rules: The first line must ONLY contain a number on the first line The number in the first line must be the number of the last valid/counting post + 1 If posts are not valid/counting they can just be ignored. In code: Code: bool foundValidPost = false; int currPost = this.lastPostNum; Post finalPost; while(!foundValidPost){ if(this.getPost(currPos).isValid()){ finalPost = this.getPost(currPos); break; } currPos--; } string postContent = finalPost.getContentAsLineArray()[0] + 1; this.post(postContent); This is a valid and counting post. Tip for making this more interesting: In the lines below the first line you can make a sentence with your number.
10 Because @Sandertv's post was invalid because it contained a quote in the first line, and the line with the number had bb codes in it and not just the number itself.