Simple Checkerboard

I am trying to texture a simple chess board object with a checkerboard pattern. I want it to look something like this:

However, when I do a cubic projection, I get this:

I know this is due to the nature of the cubic projection, so maybe that’s not the right option. How can I make it so it looks more like the first image? I’ve found a solution, but it involves making 4 separate cubes:

This solution visually looks like what I want, but now I have to make a separate cube for every tile I want from now on.
Tips?

Some of the options

Split the object into squares and add black and white materials


Use a checker texture with a mapping node to scale down the z azis


For Blender Render you can use a checker texture node and adjust the Mapping size and offset values